aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-27 20:48:19 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-06 09:56:00 +0200
commitb0a74edbb2fe91a8f82bb7437ff1a9ca4c3a03ec (patch)
tree14206e39759512f111bc28d871da6720f76d34d8 /lib/private
parent884b9a0ecf5c8bfba4e8b988ee39c705dcc892cd (diff)
downloadnextcloud-server-b0a74edbb2fe91a8f82bb7437ff1a9ca4c3a03ec.tar.gz
nextcloud-server-b0a74edbb2fe91a8f82bb7437ff1a9ca4c3a03ec.zip
allow moving files to the root
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/connector/sabre/objecttree.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php
index a3de2efaa50..c55a392bca0 100644
--- a/lib/private/connector/sabre/objecttree.php
+++ b/lib/private/connector/sabre/objecttree.php
@@ -126,10 +126,6 @@ class ObjectTree extends \Sabre\DAV\ObjectTree {
throw new \Sabre\DAV\Exception\Forbidden();
}
if ($sourceDir !== $destinationDir) {
- // for a full move we need update privileges on sourcePath and sourceDir as well as destinationDir
- if (ltrim($destinationDir, '/') === '') {
- throw new \Sabre\DAV\Exception\Forbidden();
- }
if (!$this->fileView->isUpdatable($sourceDir)) {
throw new \Sabre\DAV\Exception\Forbidden();
}