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
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-04-08 16:05:43 +0300
committerRobin Appelman <robin@icewind.nl>2022-04-08 16:05:43 +0300
commit54e52e9b5e569942f9daa7f00876006e90736a61 (patch)
treedb6cfccfefd72d23a623b848af659c7265fcd50c /lib
parentbdc86e9486ca966ace85648d1f8f56198ddd0253 (diff)
always do full setup for home folder with submounts
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/SetupManager.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index 204d057a240..e0575ea92a5 100644
--- a/lib/private/Files/SetupManager.php
+++ b/lib/private/Files/SetupManager.php
@@ -368,8 +368,12 @@ class SetupManager {
}
// for the user's home folder, it's always the home mount
- if (rtrim($path) === "/" . $user->getUID() . "/files" && !$includeChildren) {
- $this->oneTimeUserSetup($user);
+ if (rtrim($path) === "/" . $user->getUID() . "/files") {
+ if ($includeChildren) {
+ $this->setupForUser($user);
+ } else {
+ $this->oneTimeUserSetup($user);
+ }
return;
}