mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #31356 from nextcloud/techdebt/noid/only-setup-fs-when-needed
Only setupFS when we have to copy the skeleton
This commit is contained in:
commit
0b7449e78e
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue