Add rights check

Add rights check when edit parcel informations(weight, tracking...) of a shipping
This commit is contained in:
dolibarr95 2018-06-22 12:25:14 +02:00 committed by GitHub
parent 88d3bf0148
commit 45451f08b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;