Merge pull request #9005 from dolibarr95/patch-47
FIX: Add rights check in shipping
This commit is contained in:
commit
430dea917e
@ -503,12 +503,16 @@ if (empty($reshook))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Action update
|
// Action update
|
||||||
else if ($action == 'settracking_number' || $action == 'settracking_url'
|
else if (
|
||||||
|
($action == 'settracking_number'
|
||||||
|
|| $action == 'settracking_url'
|
||||||
|| $action == 'settrueWeight'
|
|| $action == 'settrueWeight'
|
||||||
|| $action == 'settrueWidth'
|
|| $action == 'settrueWidth'
|
||||||
|| $action == 'settrueHeight'
|
|| $action == 'settrueHeight'
|
||||||
|| $action == 'settrueDepth'
|
|| $action == 'settrueDepth'
|
||||||
|| $action == 'setshipping_method_id')
|
|| $action == 'setshipping_method_id')
|
||||||
|
&& $user->rights->expedition->creer
|
||||||
|
)
|
||||||
{
|
{
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user