mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Add check
This commit is contained in:
parent
77deea8ad4
commit
3f28dc59ea
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user