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-05 16:42:14 +0300
committerRobin Appelman <robin@icewind.nl>2022-04-06 14:13:32 +0300
commit791dc509d3f48d882b556ca67a4881af6bc3c54e (patch)
treea94d593bd9834d70df957ead66c2a5df89480505 /lib
parent3b98db15e1386aac18bc7041e3d1c9b1b5617e17 (diff)
only setup home mount when getting home folder
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/SetupManager.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index ddb0bbceb81..d091b5c5e35 100644
--- a/lib/private/Files/SetupManager.php
+++ b/lib/private/Files/SetupManager.php
@@ -367,6 +367,12 @@ class SetupManager {
return;
}
+ // for the user's home folder, it's always the home mount
+ if (rtrim($path) === "/" . $user->getUID() . "/files" && !$includeChildren) {
+ $this->oneTimeUserSetup($user);
+ return;
+ }
+
if (!isset($this->setupUserMountProviders[$user->getUID()])) {
$this->setupUserMountProviders[$user->getUID()] = [];
}