]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix permissions check when moving a file to a different directory over webdav
authorRobin Appelman <icewind@owncloud.com>
Fri, 20 Jun 2014 12:29:13 +0000 (14:29 +0200)
committerRobin Appelman <icewind@owncloud.com>
Fri, 20 Jun 2014 12:29:13 +0000 (14:29 +0200)
lib/private/connector/sabre/objecttree.php

index f2578e3c097ac5d55c261243a7fbd26e619a4eeb..54596db3c47a7664e0e6c79c466e730c0cb6173e 100644 (file)
@@ -135,10 +135,7 @@ class ObjectTree extends \Sabre\DAV\ObjectTree {
                        throw new \Sabre\DAV\Exception\Forbidden();
                }
                if ($sourceDir !== $destinationDir) {
-                       if (!$this->fileView->isUpdatable($sourceDir)) {
-                               throw new \Sabre\DAV\Exception\Forbidden();
-                       }
-                       if (!$this->fileView->isUpdatable($destinationDir)) {
+                       if (!$this->fileView->isCreatable($destinationDir)) {
                                throw new \Sabre\DAV\Exception\Forbidden();
                        }
                        if (!$this->fileView->isDeletable($sourcePath) && !$isMovableMount) {