Merge pull request #32797 from nextcloud/fix-external-home-dir

fix mounts mounted at the users home
This commit is contained in:
blizzz 2022-06-10 00:44:01 +02:00 committed by GitHub
commit b1616dea53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -380,13 +380,9 @@ class SetupManager {
return;
}
// for the user's home folder, it's always the home mount
if (rtrim($path) === "/" . $user->getUID() . "/files") {
if ($includeChildren) {
$this->setupForUser($user);
} else {
$this->oneTimeUserSetup($user);
}
// for the user's home folder, and includes children we need everything always
if (rtrim($path) === "/" . $user->getUID() . "/files" && $includeChildren) {
$this->setupForUser($user);
return;
}