summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/gallery/helpers/access.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/helpers/access.php b/modules/gallery/helpers/access.php
index fbe0b550..79394d35 100644
--- a/modules/gallery/helpers/access.php
+++ b/modules/gallery/helpers/access.php
@@ -99,6 +99,7 @@ class access_Core {
return true;
}
+ print "Before owner id check\n";
if ($item->owner_id == $user->id &&
in_array($perm_name, array("view_full", "edit", "add"))) {
return true;
@@ -109,7 +110,9 @@ class access_Core {
} else {
$resource = model_cache::get("access_cache", $item->id, "item_id");
}
+ print Kohana::debug($resource->as_array()) . "\n";
foreach ($user->groups as $group) {
+ print "$group->name\n";
if ($resource->__get("{$perm_name}_{$group->id}") === self::ALLOW) {
return true;
}