From: Robin Appelman Date: Fri, 22 Apr 2022 15:40:50 +0000 (+0200) Subject: Only need to setup root for groupfolders X-Git-Tag: v25.0.0beta1~515^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b36dfd8f11d070cdbd60194980cc1bec2ef31b7a;p=nextcloud-server.git Only need to setup root for groupfolders Signed-off-by: Robin Appelman --- diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index f1799798ccb..508d7425539 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -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 {