From 89ba3d5c8c173297a14ceb5f80faab4d9210ef08 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 22 Mar 2006 09:10:01 +0000 Subject: [PATCH] bugfix --- htdocs/contrat/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 59904b03c9a..e24bb6dc228 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -53,7 +53,7 @@ if ($user->societe_id > 0) } // Protection restriction commercial -if ($contratid) +if ($contratid && !$user->rights->commercial->client->voir) { $sql = "SELECT sc.fk_soc, c.fk_soc"; $sql .= " FROM ".MAIN_DB_PREFIX."societe_commerciaux as sc, ".MAIN_DB_PREFIX."contrat as c";