Skip to content

Commit

Permalink
Fix ACLs resolver for MODX 3 (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
halftrainedharry authored Aug 19, 2024
1 parent e7ecc03 commit a34fefd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _build/resolvers/resolve.acls.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
case xPDOTransport::ACTION_INSTALL:
case xPDOTransport::ACTION_UPGRADE:
$group = $modx->getObject('modAccessPolicyTemplateGroup', ['name' => 'Admin']);
if (!$group) {
$group = $modx->getObject('modAccessPolicyTemplateGroup', ['name' => 'Administrator']);
}
if (!$group) {
return;
}
Expand Down

0 comments on commit a34fefd

Please sign in to comment.