From b0a74edbb2fe91a8f82bb7437ff1a9ca4c3a03ec Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <schiessle@owncloud.com>
Date: Tue, 27 May 2014 20:48:19 +0200
Subject: allow moving files to the root

---
 lib/private/connector/sabre/objecttree.php | 4 ----
 1 file changed, 4 deletions(-)

(limited to 'lib/private/connector')

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();
 			}
-- 
cgit v1.2.3