summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-06-09 19:21:56 +0200
committerRobin Appelman <robin@icewind.nl>2022-06-09 19:21:56 +0200
commit5c768f980e3936343dc9de13b4d1b303d2ed5443 (patch)
tree6096e4aecdf8bc3922979eb733bceea9ea12d092
parent0523626b98ea356842b0c49e63808b300bb2096d (diff)
downloadnextcloud-server-5c768f980e3936343dc9de13b4d1b303d2ed5443.tar.gz
nextcloud-server-5c768f980e3936343dc9de13b4d1b303d2ed5443.zip
fix mounts mounted at the users home
this fixes external storages with '/' as mountpoint Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--lib/private/Files/SetupManager.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index 040ba6b898f..629ed6f1bf0 100644
--- a/lib/private/Files/SetupManager.php
+++ b/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;
}