From 3f1ce7e3d48bb5cec6d2471cacb129d35444b9f8 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 16 Mar 2006 09:22:20 +0000 Subject: [PATCH] bugfix --- htdocs/contact/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index 17b51de7cdd..bf20b4f6b60 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -52,7 +52,7 @@ if ($user->societe_id > 0) } // Protection restriction commercial -if ($contactid) +if ($contactid && !$user->rights->commercial->client->voir) { $sql = "SELECT sc.fk_soc, sp.fk_soc"; $sql .= " FROM ".MAIN_DB_PREFIX."societe_commerciaux as sc, ".MAIN_DB_PREFIX."socpeople as sp";