[Pkg-owncloud-commits] [owncloud] 04/67: Fix permissions check when moving a file to a different directory over webdav
David Prévot
taffit at moszumanska.debian.org
Fri Jun 27 23:58:11 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 80e6d357a2d0e42331208553a2bccb191ce4e41d
Author: Robin Appelman <icewind at owncloud.com>
Date: Fri Jun 20 14:29:13 2014 +0200
Fix permissions check when moving a file to a different directory over webdav
---
lib/private/connector/sabre/objecttree.php | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php
index f2578e3..54596db 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) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list