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