diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-13 18:03:50 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-13 18:03:50 +0000 |
commit | c52a231bc08558077788601cbd8a97cd514f1a63 (patch) | |
tree | 57e9e445ea2824d40405244d13b2fc5c919587a6 /core/controllers/simple_uploader.php | |
parent | 5c40669fd7b5a2b89d8e8dfb283c2703d0979d49 (diff) |
Create a new "add" permission and require it at the controller level
when adding photos/movies/albums
Diffstat (limited to 'core/controllers/simple_uploader.php')
-rw-r--r-- | core/controllers/simple_uploader.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/simple_uploader.php b/core/controllers/simple_uploader.php index 479082d5..8d8bbbc0 100644 --- a/core/controllers/simple_uploader.php +++ b/core/controllers/simple_uploader.php @@ -33,7 +33,7 @@ class Simple_Uploader_Controller extends Controller { public function add_photo($id) { $album = ORM::factory("item", $id); - access::required("edit", $album); + access::required("add", $album); access::verify_csrf(); $file_validation = new Validation($_FILES); |