diff options
author | Robin Appelman <robin@icewind.nl> | 2022-02-01 19:05:23 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-02-09 16:01:31 +0100 |
commit | b799fd40e9fa5a3c148dd092e538550cf0498f7e (patch) | |
tree | 349a03e952f595f1bc72dd861c4dc014d7621af4 | |
parent | 2673775f6ebb7c3bee72fd08232746ad32595822 (diff) | |
download | nextcloud-server-b799fd40e9fa5a3c148dd092e538550cf0498f7e.tar.gz nextcloud-server-b799fd40e9fa5a3c148dd092e538550cf0498f7e.zip |
dont mark fs as setup when no user is active
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/legacy/OC_Util.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index 57b36983266..3e3708f201b 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -323,8 +323,6 @@ class OC_Util { return false; } - self::$fsSetup = true; - \OC::$server->getEventLogger()->start('setup_fs', 'Setup filesystem'); // If we are not forced to load a specific user we load the one that is logged in @@ -336,6 +334,8 @@ class OC_Util { //if we aren't logged in, or the user doesn't exist, there is no use to set up the filesystem if ($userObject) { + self::$fsSetup = true; + $userDir = '/' . $userObject->getUID() . '/files'; //jail the user into his "home" directory |