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 // Action update
else if ($action == 'settracking_number' || $action == 'settracking_url' else if (
|| $action == 'settrueWeight' ($action == 'settracking_number'
|| $action == 'settrueWidth' || $action == 'settracking_url'
|| $action == 'settrueHeight' || $action == 'settrueWeight'
|| $action == 'settrueDepth' || $action == 'settrueWidth'
|| $action == 'setshipping_method_id') || $action == 'settrueHeight'
|| $action == 'settrueDepth'
|| $action == 'setshipping_method_id')
&& $user->rights->expedition->creer
)
{ {
$error=0; $error=0;