From 0dde8a9a8beab54c7fb24949135c23e5217ba996 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 11 Mar 2006 16:37:49 +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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index cae3f74aa8f..15a07ea4264 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -732,8 +732,13 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; print_titre($langs->trans("AddToMyProposals")) . ''; + + if (!$user->rights->commercial->client->voir) + { print ''; print_titre($langs->trans("AddToOtherProposals")) . ''; + } + print ''; // Liste de "Mes propals" @@ -826,8 +831,13 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; print_titre($langs->trans("AddToMyOrders")) . ''; + + if (!$user->rights->commercial->client->voir) + { print ''; print_titre($langs->trans("AddToOtherOrders")) . ''; + } + print ''; // Liste de "Mes commandes" @@ -918,8 +928,13 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) print ''; print_titre($langs->trans("AddToMyBills")); + + if (!$user->rights->commercial->client->voir) + { print ''; print_titre($langs->trans("AddToOtherBills")); + } + print ''; // Liste de Mes factures