replace societe_id by socid

This commit is contained in:
Frédéric FRANCE 2019-11-04 20:20:38 +01:00 committed by GitHub
parent dbb90914bc
commit 4df406c985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
{