Skip to content

Commit

Permalink
Fix nested prefixes and allowUser config.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark authored Nov 5, 2019
1 parent 3add32c commit 9f9fae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/AclTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ protected function _check(array $user, array $params) {
if (empty($params['prefix'])) {
return true;
}
if ($params['prefix'] !== $this->getConfig('adminPrefix')) {
if ($params['prefix'] !== $this->getConfig('adminPrefix') && strpos($params['prefix'], $this->getConfig('adminPrefix') . '/') !== 0) {
return true;
}
}
Expand Down

0 comments on commit 9f9fae7

Please sign in to comment.