Unverified Commit 0b7449e7 authored by Joas Schilling's avatar Joas Schilling Committed by GitHub
Browse files

Merge pull request #31356 from nextcloud/techdebt/noid/only-setup-fs-when-needed

Only setupFS when we have to copy the skeleton
parents 22a9c54f 86de1d56
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment