replace societe_id by socid
This commit is contained in:
parent
dbb90914bc
commit
4df406c985
@ -148,11 +148,13 @@ class DolibarrApiAccess implements iAuthenticate
|
||||
$fuser->getrights();
|
||||
static::$user = $fuser;
|
||||
|
||||
if($fuser->societe_id)
|
||||
if ($fuser->socid) {
|
||||
static::$role = 'external';
|
||||
}
|
||||
|
||||
if($fuser->admin)
|
||||
if ($fuser->admin) {
|
||||
static::$role = 'admin';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user