summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-06-30 13:17:53 +0200
committerLukas Reschke <lukas@owncloud.com>2016-06-30 13:17:53 +0200
commit1e7f0f73410cf3b8a7fd52cade27de92bc5994c3 (patch)
tree31f850e5533898881493f8a5eb5c68412560d753 /apps/dav
parentb32b296ed770044b347e9216f3f4ad68c55b14f3 (diff)
downloadnextcloud-server-1e7f0f73410cf3b8a7fd52cade27de92bc5994c3.tar.gz
nextcloud-server-1e7f0f73410cf3b8a7fd52cade27de92bc5994c3.zip
Add required $message parameter
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/ObjectTree.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ObjectTree.php b/apps/dav/lib/Connector/Sabre/ObjectTree.php
index 07052e30301..100e5ec56a2 100644
--- a/apps/dav/lib/Connector/Sabre/ObjectTree.php
+++ b/apps/dav/lib/Connector/Sabre/ObjectTree.php
@@ -202,7 +202,7 @@ class ObjectTree extends \Sabre\DAV\Tree {
$sourcePermission = $infoSource && $infoSource->isDeletable();
if (!$destinationPermission || !$sourcePermission) {
- throw new Forbidden();
+ throw new Forbidden('No permissions to move object.');
}
$targetNodeExists = $this->nodeExists($destinationPath);
@@ -285,7 +285,7 @@ class ObjectTree extends \Sabre\DAV\Tree {
$info = $this->fileView->getFileInfo(dirname($destination));
if ($info && !$info->isUpdateable()) {
- throw new Forbidden();
+ throw new Forbidden('No permissions to move object.');
}
// this will trigger existence check