[Fix] Restrict domain specific roles (#11975)

* restrict roles to its specific domain

* missing hook for Non Profit
This commit is contained in:
Zarrar 2017-12-13 18:36:08 +05:30 committed by Nabin Hait
parent 659b46832c
commit de8f6120f3
4 changed files with 12 additions and 1 deletions

View File

@ -14,6 +14,10 @@ data = {
'Water Analysis', 'Water Analysis',
'Weather' 'Weather'
], ],
'restricted_roles': [
'Agriculture Manager',
'Agriculture User'
],
'modules': [ 'modules': [
'Agriculture' 'Agriculture'
], ],

View File

@ -16,7 +16,8 @@ data = {
'restricted_roles': [ 'restricted_roles': [
'Student', 'Student',
'Instructor', 'Instructor',
'Academics User' 'Academics User',
'Education Manager'
], ],
'modules': [ 'modules': [
'Education' 'Education'

View File

@ -10,6 +10,11 @@ data = {
'HR', 'HR',
'ToDo' 'ToDo'
], ],
'restricted_roles': [
'Non Profit Manager',
'Non Profit Member',
'Non Profit Portal User'
],
'modules': [ 'modules': [
'Non Profit' 'Non Profit'
], ],

View File

@ -60,6 +60,7 @@ domains = {
'Healthcare': 'erpnext.domains.healthcare', 'Healthcare': 'erpnext.domains.healthcare',
'Hospitality': 'erpnext.domains.hospitality', 'Hospitality': 'erpnext.domains.hospitality',
'Manufacturing': 'erpnext.domains.manufacturing', 'Manufacturing': 'erpnext.domains.manufacturing',
'Non Profit': 'erpnext.domains.non_profit',
'Retail': 'erpnext.domains.retail', 'Retail': 'erpnext.domains.retail',
'Services': 'erpnext.domains.services', 'Services': 'erpnext.domains.services',
} }