Skip to content

Commit b1616de

Browse files
authored
Merge pull request #32797 from nextcloud/fix-external-home-dir
fix mounts mounted at the users home
2 parents 0523626 + 5c768f9 commit b1616de

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/private/Files/SetupManager.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,9 @@ public function setupForPath(string $path, bool $includeChildren = false): void
380380
return;
381381
}
382382

383-
// for the user's home folder, it's always the home mount
384-
if (rtrim($path) === "/" . $user->getUID() . "/files") {
385-
if ($includeChildren) {
386-
$this->setupForUser($user);
387-
} else {
388-
$this->oneTimeUserSetup($user);
389-
}
383+
// for the user's home folder, and includes children we need everything always
384+
if (rtrim($path) === "/" . $user->getUID() . "/files" && $includeChildren) {
385+
$this->setupForUser($user);
390386
return;
391387
}
392388

0 commit comments

Comments
 (0)