[Pkg-owncloud-commits] [owncloud] 38/67: only the mount point has delete and update permissions to enable rename operation

David Prévot taffit at moszumanska.debian.org
Fri Jun 27 23:58:15 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 70ca292fd9c74a6f78983ae252729ee6fa69b1f4
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Tue Jun 24 13:55:04 2014 +0200

    only the mount point has delete and update permissions to enable rename operation
---
 lib/private/files/view.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 48e7cb8..c9c1fc3 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -896,7 +896,7 @@ class View {
 			return false;
 		}
 
-		if ($mount instanceof MoveableMount) {
+		if ($mount instanceof MoveableMount && $internalPath === '') {
 			$data['permissions'] |= \OCP\PERMISSION_DELETE | \OCP\PERMISSION_UPDATE;
 		}
 

-- 
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