restore any missing default groups when permissions are restored (#6657)
This commit is contained in:
parent
a802e275f6
commit
a258a067a5
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue