aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authoricewind1991 <robin@icewind.nl>2014-06-25 15:09:58 +0200
committericewind1991 <robin@icewind.nl>2014-06-25 15:09:58 +0200
commit16396e2e3314a3dcd0fde2396212e3986e6e8ad2 (patch)
tree66a24724a77d083794a2b51d115e8f97e4a856fb /lib/private
parentc94c69aea1ad668f7b8f523a89bcb12dab561589 (diff)
parent24f15fca6429f741ec060086770ba9961035cc02 (diff)
downloadnextcloud-server-16396e2e3314a3dcd0fde2396212e3986e6e8ad2.tar.gz
nextcloud-server-16396e2e3314a3dcd0fde2396212e3986e6e8ad2.zip
Merge pull request #9123 from owncloud/webdav-move-permissions
Fix permissions check when moving a file to a different directory over webdav
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/connector/sabre/objecttree.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php
index f2578e3c097..54596db3c47 100644
--- a/lib/private/connector/sabre/objecttree.php
+++ b/lib/private/connector/sabre/objecttree.php
@@ -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) {