mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
CHANGE: ternary simplification (#34675)
This commit is contained in:
@@ -121,7 +121,7 @@ class MyModuleApi extends DolibarrApi
|
||||
throw new RestException(403);
|
||||
}
|
||||
|
||||
$socid = DolibarrApiAccess::$user->socid ? DolibarrApiAccess::$user->socid : 0;
|
||||
$socid = DolibarrApiAccess::$user->socid ?: 0;
|
||||
|
||||
$restrictonsocid = 0; // Set to 1 if there is a field socid in table of object
|
||||
|
||||
|
||||
Reference in New Issue
Block a user