diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-27 11:12:27 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-27 11:12:27 -0700 |
commit | 1ec1f19f1a388ed8f49af13d0de77e714c286811 (patch) | |
tree | 4d5e70c5cb568a29fb8d1e9a128da41751d9b808 | |
parent | 482e223b602d60eec424081d0328cde66d28a758 (diff) |
Back out fixes for ticket #452
Revert "It helps to save before committing :-)"
This reverts commit 0d76d6fd77f53e9e92a9a013cd112c69217f3ceb.
-rw-r--r-- | modules/gallery/helpers/access.php | 3 |
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; } |