diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index febaff2c9bb..e5d31de915d 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -648,7 +648,7 @@ if (empty($reshook)) { } } } - } elseif ($action == 'confirm_cancel' && $confirm == 'yes' && $user->hasRight('expedition', 'supprimer')) { + } elseif ($action == 'confirm_cancel' && $confirm == 'yes' && $user->hasRight('expedition', 'creer')) { $also_update_stock = (GETPOST('alsoUpdateStock', 'alpha') ? 1 : 0); $result = $object->cancel($user, 0, (bool) $also_update_stock); if ($result > 0) {