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