From 6d679117995662be1a3f77d005b063fc76784224 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 7 Dec 2005 15:24:14 +0000 Subject: [PATCH] Ajout de permissions --- htdocs/product/fournisseurs.php | 2 +- htdocs/product/stock/product.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index b13ee4a98c8..9b9a000a6d9 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -315,7 +315,7 @@ if ($_GET["id"] || $_GET["ref"]) if ($_GET["action"] != 'add_price') { - if (!$user->rights->produit->creer) + if ($user->rights->produit->creer) { print ''; print $langs->trans("AddSupplier").''; diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index e14548ffc6d..565f0a76397 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -402,12 +402,12 @@ print "
\n"; if ($_GET["action"] == '' ) { - if (!$user->rights->stock->mouvement->creer) + if ($user->rights->stock->mouvement->creer) { print 'Transfert'; } - if (!$user->rights->stock->creer) + if ($user->rights->stock->creer) { print 'Correction stock'; }