diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index 01ce4a1cc5992..a79adb87492d5 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -365,7 +365,7 @@ public function setupRoot(): void { * @return IUser|null */ private function getUserForPath(string $path) { - if (strpos($path, '/__groupfolders') === 0) { + if (str_starts_with($path, '/__groupfolders') || str_starts_with($path, '/files_encryption')) { return null; } elseif (substr_count($path, '/') < 2) { if ($user = $this->userSession->getUser()) {