From aae1769e60c0b92a7813cbaa378108d0d7004e42 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 22 Apr 2022 17:40:50 +0200 Subject: [PATCH] Only need to setup root for groupfolders Signed-off-by: Robin Appelman --- lib/private/Files/SetupManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index 98792ed804322..9fb7b030e1da7 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -344,7 +344,9 @@ public function setupRoot(): void { * @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 {