diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-05 15:42:14 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-06 13:13:32 +0200 |
commit | 791dc509d3f48d882b556ca67a4881af6bc3c54e (patch) | |
tree | a94d593bd9834d70df957ead66c2a5df89480505 | |
parent | 3b98db15e1386aac18bc7041e3d1c9b1b5617e17 (diff) | |
download | nextcloud-server-791dc509d3f48d882b556ca67a4881af6bc3c54e.tar.gz nextcloud-server-791dc509d3f48d882b556ca67a4881af6bc3c54e.zip |
only setup home mount when getting home folder
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/Files/SetupManager.php | 6 |
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()] = []; } |