Merge pull request #12323 from frederic34/patch-11
replace societe_id by socid
This commit is contained in:
commit
8d1cbab51a
@ -148,11 +148,13 @@ class DolibarrApiAccess implements iAuthenticate
|
|||||||
$fuser->getrights();
|
$fuser->getrights();
|
||||||
static::$user = $fuser;
|
static::$user = $fuser;
|
||||||
|
|
||||||
if($fuser->societe_id)
|
if ($fuser->socid) {
|
||||||
static::$role = 'external';
|
static::$role = 'external';
|
||||||
|
}
|
||||||
|
|
||||||
if($fuser->admin)
|
if ($fuser->admin) {
|
||||||
static::$role = 'admin';
|
static::$role = 'admin';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user