mirror of
https://github.com/getgrav/grav.git
synced 2026-03-06 12:31:53 +01:00
🐛 If a user belongs to more than one group, if one group gives us a permission we end the loop and take that permission for granted
This commit is contained in:
@@ -159,6 +159,9 @@ class User extends Data
|
||||
if ($groups) foreach($groups as $group) {
|
||||
$permission = self::getGrav()['config']->get("groups.{$group}.access.{$action}");
|
||||
$return = Utils::isPositive($permission);
|
||||
if ($return === true) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//Check user access level
|
||||
|
||||
Reference in New Issue
Block a user