diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-04 00:09:09 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-04 00:09:09 -0300 |
commit | 70a0e9c2d39532f9de6c6e108ef7eaaebb856ed6 (patch) | |
tree | 0953ba73c2b3db0e125e9fa21183ad76b59d51be /lib | |
parent | 61379c9165bee668612a407ea153ab382e5039b2 (diff) | |
download | nextcloud-server-70a0e9c2d39532f9de6c6e108ef7eaaebb856ed6.tar.gz nextcloud-server-70a0e9c2d39532f9de6c6e108ef7eaaebb856ed6.zip |
Revert "fix permissions of mountpoints"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/View.php | 8 |
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)); |