mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix warning
This commit is contained in:
parent
87a452c6f4
commit
7e9fcfe664
|
|
@ -387,10 +387,10 @@ function getOrder($authentication, $id = '', $ref = '', $ref_ext = '')
|
|||
if ($result > 0)
|
||||
{
|
||||
// Security for external user
|
||||
if ($socid && ($socid != $order->socid))
|
||||
if ($socid && (empty($order->socid) || $socid != $order->socid))
|
||||
{
|
||||
$error++;
|
||||
$errorcode = 'PERMISSION_DENIED'; $errorlabel = $order->socid.'User does not have permission for this request';
|
||||
$errorcode = 'PERMISSION_DENIED'; $errorlabel = 'User does not have permission for this request';
|
||||
}
|
||||
|
||||
if (!$error)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user