From ae5f11d5e08537dca0e588588e06c881fe06a443 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 26 Jan 2026 21:10:15 +0100 Subject: [PATCH] fix: don't try to setup for a user when setting up / Signed-off-by: Robin Appelman --- lib/private/Files/SetupManager.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index 393a6a7de0f..63d972cc0cd 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -434,8 +434,10 @@ class SetupManager { * @param string $path * @return IUser|null */ - private function getUserForPath(string $path) { - if (str_starts_with($path, '/__groupfolders')) { + private function getUserForPath(string $path): ?IUser { + if ($path === '' || $path === '/') { + return null; + } elseif (str_starts_with($path, '/__groupfolders')) { return null; } elseif (substr_count($path, '/') < 2) { if ($user = $this->userSession->getUser()) {