diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-26 09:33:44 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-26 09:33:44 -0700 |
commit | 0d76d6fd77f53e9e92a9a013cd112c69217f3ceb (patch) | |
tree | 8974143ae420c19bf24d2626fa8ca510ac202640 | |
parent | 0b97cfd6f098be08be5f3cf1dbca1cce580ae330 (diff) |
It helps to save before committing :-)
-rw-r--r-- | modules/gallery/helpers/access.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/gallery/helpers/access.php b/modules/gallery/helpers/access.php index 4f737c7f..abb48fc3 100644 --- a/modules/gallery/helpers/access.php +++ b/modules/gallery/helpers/access.php @@ -99,7 +99,6 @@ 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; @@ -110,9 +109,7 @@ 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; } |