diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-22 15:16:56 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-22 15:16:56 -0700 |
commit | d4104a23ec504e451e7a96f9798ea4ed695e9d97 (patch) | |
tree | fb61d79d6f5194ad516480f89507785b38e8cae3 /modules/gallery/helpers | |
parent | c8d215bf8015d9390201e49977b580319210a017 (diff) |
Add explicit unit tests for access::user_can
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/access.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/access.php b/modules/gallery/helpers/access.php index 65316a8a..956b4e5c 100644 --- a/modules/gallery/helpers/access.php +++ b/modules/gallery/helpers/access.php @@ -209,6 +209,7 @@ class access_Core { $access = model_cache::get("access_intent", $album->id, "item_id"); $access->__set("{$perm_name}_{$group->id}", $value); $access->save(); + $album->reload(); if ($perm_name == "view") { self::_update_access_view_cache($group, $album); |