diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-27 20:48:19 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-06 09:56:00 +0200 |
commit | b0a74edbb2fe91a8f82bb7437ff1a9ca4c3a03ec (patch) | |
tree | 14206e39759512f111bc28d871da6720f76d34d8 /lib | |
parent | 884b9a0ecf5c8bfba4e8b988ee39c705dcc892cd (diff) | |
download | nextcloud-server-b0a74edbb2fe91a8f82bb7437ff1a9ca4c3a03ec.tar.gz nextcloud-server-b0a74edbb2fe91a8f82bb7437ff1a9ca4c3a03ec.zip |
allow moving files to the root
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/connector/sabre/objecttree.php | 4 |
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(); } |