From e416380da680ffd2b857832bee5071164275d792 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 16 Mar 2007 16:18:14 +0000 Subject: [PATCH] Bugfix --- htdocs/product/fiche.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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").''; }