fix: [ACL component] fixes

pull/184/head
iglocska 2024-08-22 12:25:35 +02:00
parent d12faba78f
commit 80b3c0123d
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 18 additions and 18 deletions

View File

@ -134,13 +134,13 @@ class ACLComponent extends Component
'viewConnector' => ['OR' => ['perm_admin', 'perm_community_admin']] 'viewConnector' => ['OR' => ['perm_admin', 'perm_community_admin']]
], ],
'MailingLists' => [ 'MailingLists' => [
"add" => ['perm_org_admin'], "add" => ['OR' => ['perm_org_admin', 'perm_community_admin']],
"addIndividual" => ['perm_org_admin'], "addIndividual" => ['OR' => ['perm_org_admin', 'perm_community_admin']],
"delete" => ['perm_org_admin'], "delete" => ['OR' => ['perm_org_admin', 'perm_community_admin']],
"edit" => ['perm_org_admin'], "edit" => ['OR' => ['perm_org_admin', 'perm_community_admin']],
"index" => ['*'], "index" => ['*'],
"listIndividuals" => ['perm_org_admin'], "listIndividuals" => ['OR' => ['perm_org_admin', 'perm_community_admin']],
"removeIndividual" => ['perm_org_admin'], "removeIndividual" => ['OR' => ['perm_org_admin', 'perm_community_admin']],
"view" => ['*'], "view" => ['*'],
], ],
'MetaTemplateFields' => [ 'MetaTemplateFields' => [
@ -183,11 +183,11 @@ class ACLComponent extends Component
'Organisations' => [ 'Organisations' => [
'add' => ['perm_community_admin'], 'add' => ['perm_community_admin'],
'delete' => ['perm_community_admin'], 'delete' => ['perm_community_admin'],
'edit' => ['perm_community_admin', 'perm_org_admin'], 'edit' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'filtering' => ['*'], 'filtering' => ['*'],
'index' => ['*'], 'index' => ['*'],
'tag' => ['perm_org_admin'], 'tag' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'untag' => ['perm_org_admin'], 'untag' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'view' => ['*'], 'view' => ['*'],
'viewTags' => ['*'] 'viewTags' => ['*']
], ],
@ -218,13 +218,13 @@ class ACLComponent extends Component
'view' => ['*'] 'view' => ['*']
], ],
'SharingGroups' => [ 'SharingGroups' => [
'add' => ['perm_org_admin'], 'add' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'addOrg' => ['perm_org_admin'], 'addOrg' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'delete' => ['perm_org_admin'], 'delete' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'edit' => ['perm_org_admin'], 'edit' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'index' => ['*'], 'index' => ['*'],
'listOrgs' => ['*'], 'listOrgs' => ['*'],
'removeOrg' => ['perm_org_admin'], 'removeOrg' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'view' => ['*'] 'view' => ['*']
], ],
'Tags' => [ 'Tags' => [
@ -235,15 +235,15 @@ class ACLComponent extends Component
'view' => ['*'] 'view' => ['*']
], ],
'Users' => [ 'Users' => [
'add' => ['perm_org_admin'], 'add' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'delete' => ['perm_org_admin'], 'delete' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'edit' => ['*'], 'edit' => ['*'],
'index' => ['perm_org_admin'], 'index' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'login' => ['*'], 'login' => ['*'],
'logout' => ['*'], 'logout' => ['*'],
'register' => ['*'], 'register' => ['*'],
'settings' => ['*'], 'settings' => ['*'],
'toggle' => ['perm_org_admin'], 'toggle' => ['OR' => ['perm_org_admin', 'perm_community_admin']],
'view' => ['*'] 'view' => ['*']
], ],
'UserSettings' => [ 'UserSettings' => [