From ed592c57c71707587c5a2fc77bd097b58a7a80fc Mon Sep 17 00:00:00 2001 From: Jeroen Pinoy Date: Sat, 23 Nov 2024 20:08:41 +0100 Subject: [PATCH] fix: default admin role doesn't have group admin and meta field editor permissions --- src/Model/Table/UsersTable.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Model/Table/UsersTable.php b/src/Model/Table/UsersTable.php index 14c4750f..61f027e3 100644 --- a/src/Model/Table/UsersTable.php +++ b/src/Model/Table/UsersTable.php @@ -221,7 +221,9 @@ public function checkForNewInstance(): bool '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');