diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-28 14:01:40 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-06 09:56:01 +0200 |
commit | e362373a30198b0dac6fbc9cd751a5eafe19e21a (patch) | |
tree | 669587e514f5cd2505611fd1b033889313bda471 /lib | |
parent | a432459685a5afb3a9bb844f2bfab2c652fc0d4b (diff) | |
download | nextcloud-server-e362373a30198b0dac6fbc9cd751a5eafe19e21a.tar.gz nextcloud-server-e362373a30198b0dac6fbc9cd751a5eafe19e21a.zip |
Movable storage root can always be moved and deleted
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/view.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index fac1e64e79e..d42f6cbf9fe 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -966,7 +966,7 @@ class View { // do not allow renaming/deleting the mount point if they are not shared files/folders // for shared files/folders we use the permissions given by the owner if ($mount instanceof MoveableMount) { - $rootEntry['permissions'] = $permissions; + $rootEntry['permissions'] = $permissions | \OCP\PERMISSION_UPDATE | \OCP\PERMISSION_DELETE; } else { $rootEntry['permissions'] = $permissions & (\OCP\PERMISSION_ALL - (\OCP\PERMISSION_UPDATE | \OCP\PERMISSION_DELETE)); } |