This commit is contained in:
Laurent Destailleur 2020-04-13 14:55:37 +02:00
parent a72b262f5b
commit 236898f4e7

View File

@ -450,7 +450,7 @@ class Shipments extends DolibarrApi
*/ */
public function delete($id) public function delete($id)
{ {
if(! DolibarrApiAccess::$user->rights->shipment->supprimer) { if(! DolibarrApiAccess::$user->rights->expedition->supprimer) {
throw new RestException(401); throw new RestException(401);
} }
$result = $this->shipment->fetch($id); $result = $this->shipment->fetch($id);