diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-09-16 20:37:06 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-16 20:37:06 -0700 |
commit | e94eaa6b88f1311455e12df4f1e5099a4c314f94 (patch) | |
tree | ca737c9aafde0b8d4843ed1ed8bd07db60d616cf /modules/organize/controllers/organize.php | |
parent | 4e1e24ba1a976cd0bb7ca7dd03c6001f906a25dd (diff) | |
parent | 5490057480f17e5810cf8b9e558769ebd74d4b27 (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/organize/controllers/organize.php')
-rw-r--r-- | modules/organize/controllers/organize.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php index 259c94e7..08c80de3 100644 --- a/modules/organize/controllers/organize.php +++ b/modules/organize/controllers/organize.php @@ -45,9 +45,13 @@ class Organize_Controller extends Controller { access::verify_csrf(); $target_album = ORM::factory("item", $target_album_id); + access::required("view", $target_album); + access::required("add", $target_album); + foreach ($this->input->post("source_ids") as $source_id) { $source = ORM::factory("item", $source_id); if (!$source->contains($target_album)) { + access::required("edit", $source); item::move($source, $target_album); } } |