diff options
author | Romain LE DISEZ <romain.git@ledisez.net> | 2009-07-22 19:04:16 +0200 |
---|---|---|
committer | Romain LE DISEZ <romain.git@ledisez.net> | 2009-07-22 19:04:16 +0200 |
commit | 06fd89e8bcad2142f0b6158d5db7a91d2b6956d8 (patch) | |
tree | 9a3c1b7aadcc54252770de05b45157b44fa95148 | |
parent | 831bf63c236fe88624470d2906729e035e9dbfc8 (diff) | |
parent | 4ddaaeb9dd3359226d0406f85c58ea219f559e4e (diff) |
Merge commit 'upstream/master'
-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; } } |