Fix delete product from product card

This commit is contained in:
fappels 2017-07-09 12:47:51 +02:00
parent b61f7c0179
commit 13d6664ab4

View File

@ -561,7 +561,7 @@ if (empty($reshook))
{ {
if (($object->type == Product::TYPE_PRODUCT && $user->rights->produit->supprimer) || ($object->type == Product::TYPE_SERVICE && $user->rights->service->supprimer)) if (($object->type == Product::TYPE_PRODUCT && $user->rights->produit->supprimer) || ($object->type == Product::TYPE_SERVICE && $user->rights->service->supprimer))
{ {
$result = $object->delete(DolibarrApiAccess::$user); $result = $object->delete($user);
} }
if ($result > 0) if ($result > 0)