Only setupFS when we have to copy the skeleton

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-02-25 15:55:06 +01:00
parent 22a9c54f89
commit 86de1d569f
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -548,11 +548,11 @@ class Session implements IUserSession, Emitter {
\OC::$server->getCsrfTokenManager()->refreshToken();
}
//we need to pass the user name, which may differ from login name
$user = $this->getUser()->getUID();
OC_Util::setupFS($user);
if ($firstTimeLogin) {
//we need to pass the user name, which may differ from login name
$user = $this->getUser()->getUID();
OC_Util::setupFS($user);
// TODO: lock necessary?
//trigger creation of user home and /files folder
$userFolder = \OC::$server->getUserFolder($user);