Skip to content

Commit

Permalink
Merge pull request #190 from Wachizungu/add-new-roles-to-default-admi…
Browse files Browse the repository at this point in the history
…n-role

fix: default admin role doesn't have group admin and meta field edito…
  • Loading branch information
iglocska authored Nov 28, 2024
2 parents 39e9fb4 + ed592c5 commit 8e87dd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Model/Table/UsersTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8e87dd8

Please sign in to comment.