]> source.dussan.org Git - nextcloud-server.git/commitdiff
Revert "fix permissions of mountpoints" 4684/head
authorMorris Jobke <hey@morrisjobke.de>
Thu, 4 May 2017 03:09:09 +0000 (00:09 -0300)
committerGitHub <noreply@github.com>
Thu, 4 May 2017 03:09:09 +0000 (00:09 -0300)
lib/private/Files/View.php

index c10b5b693b75f8dcb4bb5ecee7c8e674bb2c6cee..5e581feba6e689ff7880b8dacab31d884e68823b 100644 (file)
@@ -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));