mirror of
https://github.com/getgrav/grav.git
synced 2026-02-03 21:30:24 +01:00
Add check
This commit is contained in:
@@ -140,7 +140,7 @@ class User extends Data
|
||||
|
||||
//Check group access level
|
||||
$groups = $this->get('groups');
|
||||
foreach($groups as $group) {
|
||||
if ($groups) foreach($groups as $group) {
|
||||
if (self::getGrav()['config']->get("site.groups.{$group}.access.{$action}") === true) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user