We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d56b241 + a6bcb10 commit 3950ef8Copy full SHA for 3950ef8
1 file changed
lib/private/Files/SetupManager.php
@@ -434,8 +434,10 @@ public function setupRoot(): void {
434
* @param string $path
435
* @return IUser|null
436
*/
437
- private function getUserForPath(string $path) {
438
- if (str_starts_with($path, '/__groupfolders')) {
+ private function getUserForPath(string $path): ?IUser {
+ if ($path === '' || $path === '/') {
439
+ return null;
440
+ } elseif (str_starts_with($path, '/__groupfolders')) {
441
return null;
442
} elseif (substr_count($path, '/') < 2) {
443
if ($user = $this->userSession->getUser()) {
0 commit comments