From 2c6ad8afe488e42ed53135f89d39d92215e71c4e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 11 Mar 2006 17:12:38 +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 | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 15a07ea4264..6250dc0226e 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -733,11 +733,15 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; print_titre($langs->trans("AddToMyProposals")) . ''; - if (!$user->rights->commercial->client->voir) + if ($user->rights->commercial->client->voir) { print ''; print_titre($langs->trans("AddToOtherProposals")) . ''; } + else + { + print ''; + } print ''; @@ -787,7 +791,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; - if (!$user->rights->commercial->client->voir) + if ($user->rights->commercial->client->voir) { // Liste de "Other propals" print ''; @@ -832,11 +836,15 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; print_titre($langs->trans("AddToMyOrders")) . ''; - if (!$user->rights->commercial->client->voir) + if ($user->rights->commercial->client->voir) { print ''; print_titre($langs->trans("AddToOtherOrders")) . ''; } + else + { + print ''; + } print ''; @@ -888,7 +896,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; - if (!$user->rights->commercial->client->voir) + if ($user->rights->commercial->client->voir) { // Liste de "Other orders" print ''; @@ -929,11 +937,15 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; print_titre($langs->trans("AddToMyBills")); - if (!$user->rights->commercial->client->voir) + if ($user->rights->commercial->client->voir) { print ''; print_titre($langs->trans("AddToOtherBills")); } + else + { + print ''; + } print ''; @@ -989,7 +1001,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; - if (!$user->rights->commercial->client->voir) + if ($user->rights->commercial->client->voir) { print '';