[Fix] Restrict domain specific roles (#11975)
* restrict roles to its specific domain * missing hook for Non Profit
This commit is contained in:
parent
659b46832c
commit
de8f6120f3
@ -14,6 +14,10 @@ data = {
|
|||||||
'Water Analysis',
|
'Water Analysis',
|
||||||
'Weather'
|
'Weather'
|
||||||
],
|
],
|
||||||
|
'restricted_roles': [
|
||||||
|
'Agriculture Manager',
|
||||||
|
'Agriculture User'
|
||||||
|
],
|
||||||
'modules': [
|
'modules': [
|
||||||
'Agriculture'
|
'Agriculture'
|
||||||
],
|
],
|
||||||
|
|||||||
@ -16,7 +16,8 @@ data = {
|
|||||||
'restricted_roles': [
|
'restricted_roles': [
|
||||||
'Student',
|
'Student',
|
||||||
'Instructor',
|
'Instructor',
|
||||||
'Academics User'
|
'Academics User',
|
||||||
|
'Education Manager'
|
||||||
],
|
],
|
||||||
'modules': [
|
'modules': [
|
||||||
'Education'
|
'Education'
|
||||||
|
|||||||
@ -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'
|
||||||
],
|
],
|
||||||
|
|||||||
@ -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',
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user