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-02-01 21:05:23 +0300
committerVincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com>2022-02-16 13:46:48 +0300
commitf9b74b3ced3017a5f12180e3acedeaf27dd8df49 (patch)
treed70d2fc1cbaf23cc2c5d661e5224d410a4aad0e4 /lib
parent417ead0a6bf61086a42252efa1d138908b517727 (diff)
dont mark fs as setup when no user is active
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/OC_Util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index 7b945ee8fc2..a0b78065b2f 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