Only need to setup root for groupfolders

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2022-04-22 17:40:50 +02:00 committed by Carl Schwan
parent 9a76f06eca
commit b36dfd8f11

View 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 {