diff options
Diffstat (limited to 'core/controllers/photos.php')
-rw-r--r-- | core/controllers/photos.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/photos.php b/core/controllers/photos.php index 8b3e81fc..c72fae12 100644 --- a/core/controllers/photos.php +++ b/core/controllers/photos.php @@ -23,7 +23,7 @@ class Photos_Controller extends Items_Controller { * @see Rest_Controller::_show($resource) */ public function _show($item) { - if (!access::can("view", $item->id)) { + if (!access::can("view", $item)) { return Kohana::show_404(); } |