summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2012-12-18 13:56:28 -0800
committerBharat Mediratta <bharat@menalto.com>2012-12-18 13:56:28 -0800
commit7910084224315b2d26b447381863603ea3e4e649 (patch)
treeff765d01acc1b9411d648774453db1bae759fc02
parent594611b1009b88ddfb0ec0ee3f24229a8f0030af (diff)
Check for "add" instead of "edit" in item_rest::post. Fixes #1929.
-rw-r--r--modules/gallery/helpers/item_rest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/item_rest.php b/modules/gallery/helpers/item_rest.php
index 14580cd9..43fec3ab 100644
--- a/modules/gallery/helpers/item_rest.php
+++ b/modules/gallery/helpers/item_rest.php
@@ -150,7 +150,7 @@ class item_rest_Core {
static function post($request) {
$parent = rest::resolve($request->url);
- access::required("edit", $parent);
+ access::required("add", $parent);
$entity = $request->params->entity;
$item = ORM::factory("item");