aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-04 00:09:09 -0300
committerGitHub <noreply@github.com>2017-05-04 00:09:09 -0300
commit70a0e9c2d39532f9de6c6e108ef7eaaebb856ed6 (patch)
tree0953ba73c2b3db0e125e9fa21183ad76b59d51be /lib
parent61379c9165bee668612a407ea153ab382e5039b2 (diff)
downloadnextcloud-server-70a0e9c2d39532f9de6c6e108ef7eaaebb856ed6.tar.gz
nextcloud-server-70a0e9c2d39532f9de6c6e108ef7eaaebb856ed6.zip
Revert "fix permissions of mountpoints"
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/View.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index c10b5b693b7..5e581feba6e 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -1351,12 +1351,8 @@ class View {
return false;
}
- if ($internalPath === '') {
- if ($mount instanceof MoveableMount) {
- $data['permissions'] = $data['permissions'] | \OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_DELETE;
- } else {
- $data['permissions'] = $data['permissions'] & (\OCP\Constants::PERMISSION_ALL - (\OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_DELETE));
- }
+ if ($mount instanceof MoveableMount && $internalPath === '') {
+ $data['permissions'] |= \OCP\Constants::PERMISSION_DELETE;
}
$owner = $this->getUserObjectForOwner($storage->getOwner($internalPath));