summaryrefslogtreecommitdiffstats
path: root/apps/files_external/controller/userstoragescontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/controller/userstoragescontroller.php')
-rw-r--r--apps/files_external/controller/userstoragescontroller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/controller/userstoragescontroller.php b/apps/files_external/controller/userstoragescontroller.php
index 585ff8eeb00..801c9ab0aae 100644
--- a/apps/files_external/controller/userstoragescontroller.php
+++ b/apps/files_external/controller/userstoragescontroller.php
@@ -103,7 +103,7 @@ class UserStoragesController extends StoragesController {
return $newStorage;
}
- $response = $this->validate($newStorage);
+ $response = $this->validate($newStorage, BackendService::PERMISSION_CREATE);
if (!empty($response)) {
return $response;
}
@@ -151,7 +151,7 @@ class UserStoragesController extends StoragesController {
}
$storage->setId($id);
- $response = $this->validate($storage);
+ $response = $this->validate($storage, BackendService::PERMISSION_MODIFY);
if (!empty($response)) {
return $response;
}