Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-06-09 20:21:56 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-06-10 02:23:16 +0300
commitb110026909e42b13aa609679b50bb8d02cdb14b5 (patch)
treed722f51d6246d07b30f3a5bf72e164430b8c343f
parent5058c6d3a84f4ce88b63da096c5ac7f3f34c5506 (diff)
fix mounts mounted at the users homebackport/32797/stable24
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 9fb7b030e1d..75cf0265ba1 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;
}