Add rights check
Add rights check when edit parcel informations(weight, tracking...) of a shipping
This commit is contained in:
parent
88d3bf0148
commit
45451f08b0
@ -503,12 +503,16 @@ if (empty($reshook))
|
||||
}
|
||||
|
||||
// Action update
|
||||
else if ($action == 'settracking_number' || $action == 'settracking_url'
|
||||
|| $action == 'settrueWeight'
|
||||
|| $action == 'settrueWidth'
|
||||
|| $action == 'settrueHeight'
|
||||
|| $action == 'settrueDepth'
|
||||
|| $action == 'setshipping_method_id')
|
||||
else if (
|
||||
($action == 'settracking_number'
|
||||
|| $action == 'settracking_url'
|
||||
|| $action == 'settrueWeight'
|
||||
|| $action == 'settrueWidth'
|
||||
|| $action == 'settrueHeight'
|
||||
|| $action == 'settrueDepth'
|
||||
|| $action == 'setshipping_method_id')
|
||||
&& $user->rights->expedition->creer
|
||||
)
|
||||
{
|
||||
$error=0;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user