diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-12-10 07:05:49 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-10 07:05:49 +0000 |
| commit | 18a6614a11cf39a29f5705edabc710688da357e6 (patch) | |
| tree | 26bcc7c8f81c5f9f948ded7a07b3be41ca370e4c /core/controllers/photos.php | |
| parent | 09364348c7ddb5cd46c3f63ea71467e7b49d0c34 (diff) | |
Change all access API methods to take ORMs instead of ids. This will
minimize reloading objects from the database.
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(); } |
