Fix phpcs

This commit is contained in:
Laurent Destailleur 2021-09-02 16:06:19 +02:00
parent e22bd5c048
commit 7758c0b8a7

View File

@ -147,10 +147,12 @@ class DolibarrApiAccess implements iAuthenticate
if ($result <= 0) {
throw new RestException(503, 'Error when fetching user :'.$fuser->error.' (conf->entity='.$conf->entity.')');
}
$fuser->getrights();
// Set the property $user to the $user of API
static::$user = $fuser;
// Set the global variable $user to the $user of API
// Set also the global variable $user to the $user of API
$user = $fuser;
if ($fuser->socid) {