diff options
Diffstat (limited to 'modules/gallery')
| -rw-r--r-- | modules/gallery/helpers/access.php | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/modules/gallery/helpers/access.php b/modules/gallery/helpers/access.php index 34eb709e..b5be192c 100644 --- a/modules/gallery/helpers/access.php +++ b/modules/gallery/helpers/access.php @@ -101,8 +101,8 @@ class access_Core {      $resource = $perm_name == "view" ?        $item : model_cache::get("access_cache", $item->id, "item_id"); -    foreach (user::group_ids() as $id) { -      if ($resource->__get("{$perm_name}_$id") === self::ALLOW) { +    foreach ($user->groups as $group) { +      if ($resource->__get("{$perm_name}_{$group->id}") === self::ALLOW) {          return true;        }      } | 
