N°6658 - Fix regression: do not reset current user's profile cache

This commit is contained in:
Romain Quetiez
2023-11-10 15:53:46 +01:00
parent d725ba3d84
commit d9bdcfeae3
2 changed files with 4 additions and 35 deletions

View File

@@ -845,6 +845,8 @@ class UserRights
}
/**
* Set the current user (as part of the login process)
*
* @param string $sLogin Login of the concerned user
* @param string $sAuthentication
*
@@ -854,8 +856,6 @@ class UserRights
*/
public static function Login($sLogin, $sAuthentication = 'any')
{
static::Logoff();
$oUser = self::FindUser($sLogin, $sAuthentication);
if (is_null($oUser))
{
@@ -874,6 +874,8 @@ class UserRights
}
/**
* Reset current user and cleanup associated SESSION data
*
* @return void
* @since 3.0.4 3.1.1 3.2.0
*/