diff --git a/library/WsScore/Clients/Vwbank/v0.2/Entreprise.php b/library/WsScore/Clients/Vwbank/v0.2/Entreprise.php index f5928b01..f7a72bd2 100644 --- a/library/WsScore/Clients/Vwbank/v0.2/Entreprise.php +++ b/library/WsScore/Clients/Vwbank/v0.2/Entreprise.php @@ -103,7 +103,7 @@ class Entreprise extends WsScore $identite->Privileges = true; } else { $iDb = new WDB('sdv1'); - $sql = "SELECT count(*) AS nbPriv FROM ge_cs2 WHERE cs = 'P' AND dateFin >= NOW() AND dateSuppr=0;"; + $sql = "SELECT count(*) AS nbPriv FROM ge_cs2 WHERE cs = 'P' AND dateFin >= NOW() AND dateSuppr=0 AND siren=$siren;"; $ret = $iDb->query($sql); if ($ret['nbPriv']>0) { $identite->Privileges = true;