diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-22 17:40:50 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-04-22 17:47:08 +0200 |
commit | b36dfd8f11d070cdbd60194980cc1bec2ef31b7a (patch) | |
tree | 820fa16c8316b8bc2e6bf8e97791a4235f471b43 | |
parent | 9a76f06ecadf05ef1d26bd735df1bea0dfb15d59 (diff) | |
download | nextcloud-server-b36dfd8f11d070cdbd60194980cc1bec2ef31b7a.tar.gz nextcloud-server-b36dfd8f11d070cdbd60194980cc1bec2ef31b7a.zip |
Only need to setup root for groupfolders
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/Files/SetupManager.php | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |