Merge pull request #7130 from fappels/6.0_fix_delete_product
Fix delete product from product card
This commit is contained in:
commit
baf6533ea4
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user