dont mark fs as setup when no user is active

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2022-02-01 19:05:23 +01:00 committed by Robin Appelman (Rebase PR Action)
parent cb3dc01163
commit 11cfc20ace

View file

@ -322,8 +322,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
@ -335,6 +333,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