summaryrefslogtreecommitdiff
path: root/modules/organize/controllers
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-09-15 22:51:49 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-09-15 22:51:49 -0700
commit7608870537503ec571f45a175c8486d7945e7c63 (patch)
treef37bc245d72541150ed65dfb5e91b32730561100 /modules/organize/controllers
parent7ba93e264512a8a29213f680723e34007b737935 (diff)
Controller auth / CSRF fixes
Diffstat (limited to 'modules/organize/controllers')
-rw-r--r--modules/organize/controllers/organize.php4
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);
}
}