]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only need to setup root for groupfolders 32084/head
authorRobin Appelman <robin@icewind.nl>
Fri, 22 Apr 2022 15:40:50 +0000 (17:40 +0200)
committerCarl Schwan <carl@carlschwan.eu>
Fri, 22 Apr 2022 15:47:08 +0000 (17:47 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/SetupManager.php

index f1799798ccb0af94aec6c0901e884254582b4de6..508d742553956e2f47ffb88672cff0f008404643 100644 (file)
@@ -335,7 +335,9 @@ class SetupManager {
         * @return IUser|null
         */
        private function getUserForPath(string $path) {
-               if (substr_count($path, '/') < 2) {
+               if (strpos($path, '/__groupfolders') === 0) {
+                       return null;
+               } elseif (substr_count($path, '/') < 2) {
                        if ($user = $this->userSession->getUser()) {
                                return $user;
                        } else {