diff --git a/htdocs/expedition/class/api_shipments.class.php b/htdocs/expedition/class/api_shipments.class.php index 5aca14fb28d..aeba8e78730 100644 --- a/htdocs/expedition/class/api_shipments.class.php +++ b/htdocs/expedition/class/api_shipments.class.php @@ -450,7 +450,7 @@ class Shipments extends DolibarrApi */ public function delete($id) { - if(! DolibarrApiAccess::$user->rights->shipment->supprimer) { + if(! DolibarrApiAccess::$user->rights->expedition->supprimer) { throw new RestException(401); } $result = $this->shipment->fetch($id);