Fix phpcs
This commit is contained in:
parent
e22bd5c048
commit
7758c0b8a7
@ -147,10 +147,12 @@ class DolibarrApiAccess implements iAuthenticate
|
|||||||
if ($result <= 0) {
|
if ($result <= 0) {
|
||||||
throw new RestException(503, 'Error when fetching user :'.$fuser->error.' (conf->entity='.$conf->entity.')');
|
throw new RestException(503, 'Error when fetching user :'.$fuser->error.' (conf->entity='.$conf->entity.')');
|
||||||
}
|
}
|
||||||
|
|
||||||
$fuser->getrights();
|
$fuser->getrights();
|
||||||
|
|
||||||
|
// Set the property $user to the $user of API
|
||||||
static::$user = $fuser;
|
static::$user = $fuser;
|
||||||
|
// Set also the global variable $user to the $user of API
|
||||||
// Set the global variable $user to the $user of API
|
|
||||||
$user = $fuser;
|
$user = $fuser;
|
||||||
|
|
||||||
if ($fuser->socid) {
|
if ($fuser->socid) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user