From da5a42eef295961e45cd4f7dc5cfc50c11e1e55a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 11 Mar 2006 16:31:12 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20permission=20"consulter=20tou?= =?UTF-8?q?s=20les=20clients"=20dans=20le=20module=20commercial,=20afin=20?= =?UTF-8?q?=20qu'un=20commercial=20puisse=20voir=20que=20les=20clients=20q?= =?UTF-8?q?ui=20lui=20sont=20affect=E9s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/fiche.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index c090fa7e7ca..cae3f74aa8f 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -782,6 +782,8 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; + if (!$user->rights->commercial->client->voir) + { // Liste de "Other propals" print ''; @@ -807,6 +809,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) else { print $langs->trans("NoOtherOpenedPropals"); } + } print ''; print ''; @@ -875,6 +878,8 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; + if (!$user->rights->commercial->client->voir) + { // Liste de "Other orders" print ''; @@ -900,6 +905,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) else { print $langs->trans("NoOtherOpenedOrders"); } + } print ''; print ''; @@ -966,7 +972,11 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) dolibarr_print_error($db); } - print ''; + print ''; + + if (!$user->rights->commercial->client->voir) + { + print ''; // Liste de Autres factures $var=true; @@ -1018,6 +1028,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) { dolibarr_print_error($db); } + } print ''; }