diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 4e4131eb86d..37cffbc5b7d 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -934,9 +934,11 @@ if ($_GET["action"] == '') { if ( $user->rights->produit->creer) { - print ''.$langs->trans("Edit").''; + if ($product->no_button_edit <> 1) + print ''.$langs->trans("Edit").''; - print ''.$langs->trans("CreateCopy").''; + if ($product->no_button_copy <> 1) + print ''.$langs->trans("CreateCopy").''; } /* @@ -956,7 +958,7 @@ if ($_GET["action"] == '') */ $product_is_used = $product->verif_prod_use($product->id); - if ($user->rights->produit->supprimer && ! $product_is_used) + if ($user->rights->produit->supprimer && ! $product_is_used && $product->no_button_delete <> 1) { print ''.$langs->trans("Delete").''; }