fix mounts mounted at the users home

this fixes external storages with '/' as mountpoint

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/32797/head
Robin Appelman 4 years ago
parent 0523626b98
commit 5c768f980e
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 10
      lib/private/Files/SetupManager.php

@ -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;
}

Loading…
Cancel
Save