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";