Fix 6962 wrong permission check
This commit is contained in:
parent
0eab5768f7
commit
5157981751
@ -73,7 +73,12 @@ $ref=GETPOST('ref','alpha');
|
|||||||
// Security check
|
// Security check
|
||||||
$socid='';
|
$socid='';
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
$result=restrictedArea($user, $origin, $origin_id);
|
|
||||||
|
if ($origin == 'expedition') $result=restrictedArea($user, $origin, $id);
|
||||||
|
else {
|
||||||
|
$result=restrictedArea($user, 'expedition');
|
||||||
|
if (empty($user->rights->{$origin}->lire) && empty($user->rights->{$origin}->read)) accessforbidden();
|
||||||
|
}
|
||||||
|
|
||||||
$action = GETPOST('action','alpha');
|
$action = GETPOST('action','alpha');
|
||||||
$confirm = GETPOST('confirm','alpha');
|
$confirm = GETPOST('confirm','alpha');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user