diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-22 18:40:50 +0300 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-04-22 18:47:08 +0300 |
commit | b36dfd8f11d070cdbd60194980cc1bec2ef31b7a (patch) | |
tree | 820fa16c8316b8bc2e6bf8e97791a4235f471b43 /lib | |
parent | 9a76f06ecadf05ef1d26bd735df1bea0dfb15d59 (diff) |
Only need to setup root for groupfoldersroot-setup-groupfolders
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-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 { |