diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-12-18 13:56:28 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-12-18 13:56:28 -0800 |
commit | 7910084224315b2d26b447381863603ea3e4e649 (patch) | |
tree | ff765d01acc1b9411d648774453db1bae759fc02 /modules/gallery/helpers | |
parent | 594611b1009b88ddfb0ec0ee3f24229a8f0030af (diff) |
Check for "add" instead of "edit" in item_rest::post. Fixes #1929.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/item_rest.php | 2 |
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"); |