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
c5b419ecb5
commit
3743790160
|
|
@ -364,6 +364,7 @@ function getOrder($authentication, $id = '', $ref = '', $ref_ext = '')
|
|||
$objectresp = array();
|
||||
$errorcode = ''; $errorlabel = '';
|
||||
$error = 0;
|
||||
$socid = 0;
|
||||
|
||||
$fuser = check_authentication($authentication, $error, $errorcode, $errorlabel);
|
||||
|
||||
|
|
@ -387,7 +388,7 @@ function getOrder($authentication, $id = '', $ref = '', $ref_ext = '')
|
|||
if ($result > 0)
|
||||
{
|
||||
// Security for external user
|
||||
if ($socid && (empty($order->socid) || $socid != $order->socid))
|
||||
if ($socid && $socid != $order->socid)
|
||||
{
|
||||
$error++;
|
||||
$errorcode = 'PERMISSION_DENIED'; $errorlabel = 'User does not have permission for this request';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user