Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur 2023-01-03 11:34:25 +01:00
commit e5a5237452

View File

@ -1352,10 +1352,11 @@ class User extends CommonObject
$error = 0;
// Check parameters
if (isset($this->statut) && $this->statut == $status) {
return 0;
}
if (isset($this->status) && $this->status == $status) {
if (isset($this->statut)) {
if ($this->statut == $status) {
return 0;
}
} elseif (isset($this->status) && $this->status == $status) {
return 0;
}
@ -3258,7 +3259,8 @@ class User extends CommonObject
$this->iplastlogin = '127.0.0.1';
$this->datepreviouslogin = $now;
$this->ippreviouslogin = '127.0.0.1';
$this->statut = 1;
$this->statut = 1; // deprecated
$this->status = 1;
$this->entity = 1;
return 1;