From 236898f4e710c7415dcf1fcbeef66f3cbf868e2e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 13 Apr 2020 14:55:37 +0200 Subject: [PATCH] FIX #13503 --- htdocs/expedition/class/api_shipments.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);