From 18a6614a11cf39a29f5705edabc710688da357e6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 10 Dec 2008 07:05:49 +0000 Subject: Change all access API methods to take ORMs instead of ids. This will minimize reloading objects from the database. --- core/controllers/photos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/controllers/photos.php') 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(); } -- cgit v1.2.3