summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/data_rest.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/helpers/data_rest.php')
-rw-r--r--modules/gallery/helpers/data_rest.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/gallery/helpers/data_rest.php b/modules/gallery/helpers/data_rest.php
index ca5acb4a..e45a4645 100644
--- a/modules/gallery/helpers/data_rest.php
+++ b/modules/gallery/helpers/data_rest.php
@@ -58,18 +58,6 @@ class data_rest_Core {
return $result;
}
- static function put($request) {
- $item = rest::resolve($request->url);
- access::required("edit", $item);
-
- if ($item->is_album()) {
- throw new Rest_Exception("Bad Request", 400, array("errors" => array("type" => "invalid")));
- }
-
- $item->set_data_file($request->file);
- $item->save();
- }
-
static function resolve($id) {
$item = ORM::factory("item", $id);
if (!access::can("view", $item)) {