Merge pull request #190 from Wachizungu/add-new-roles-to-default-admin-role

fix: default admin role doesn't have group admin and meta field edito…
pull/196/head
Andras Iklody 2024-11-28 09:35:36 +01:00 committed by GitHub
commit 8e87dd8b28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -221,7 +221,9 @@ class UsersTable extends AppTable
'perm_admin' => 1,
'perm_community_admin' => 1,
'perm_org_admin' => 1,
'perm_sync' => 1
'perm_sync' => 1,
'perm_group_admin' => 1,
'perm_meta_field_editor' => 1
]);
$this->Roles->save($role);
$this->Organisations = TableRegistry::get('Organisations');