fix: default admin role doesn't have group admin and meta field editor permissions

pull/190/head
Jeroen Pinoy 2024-11-23 20:08:41 +01:00
parent f7f9392cfe
commit ed592c57c7
No known key found for this signature in database
GPG Key ID: DF33A50B8E4EE081
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');