restore any missing default groups when permissions are restored (#6657)

This commit is contained in:
frytimo 2023-05-03 14:35:59 -03:00 committed by GitHub
parent a802e275f6
commit a258a067a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -222,6 +222,9 @@
//restore the default permissions
if ($upgrade_type == 'permissions') {
//default the groups in case they are missing
(new groups())->defaults();
//default the permissions
$included = true;
require_once("core/groups/permissions_default.php");