summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-22 15:16:56 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-22 15:16:56 -0700
commitd4104a23ec504e451e7a96f9798ea4ed695e9d97 (patch)
treefb61d79d6f5194ad516480f89507785b38e8cae3 /modules/gallery/helpers
parentc8d215bf8015d9390201e49977b580319210a017 (diff)
Add explicit unit tests for access::user_can
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/access.php1
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);