diff --git a/htdocs/expedition/class/api_shipments.class.php b/htdocs/expedition/class/api_shipments.class.php index c8c76445bac..e337ee5ffb8 100644 --- a/htdocs/expedition/class/api_shipments.class.php +++ b/htdocs/expedition/class/api_shipments.class.php @@ -451,7 +451,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);