Correction retour data manquant
This commit is contained in:
parent
f21f01c84f
commit
2efd99ad5b
@ -2772,13 +2772,10 @@ class WsInterne extends WsScore
|
||||
$error = new ErrorType();
|
||||
$result = false;
|
||||
//Pas SuperAdministrateur
|
||||
if ($this->tabInfoUser['profil']!='SuperAdministrateur')
|
||||
{
|
||||
if ($this->tabInfoUser['profil']!='SuperAdministrateur'){
|
||||
$error->errnum = 1;
|
||||
$error->errmsg = 'Profil insuffisant pour cette méthode';
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$tabInfos = array();
|
||||
$tabInfos['nom'] = $infos->nom;
|
||||
$tabInfos['actif'] = ($infos->actif=='Oui') ? 'Oui' : 'Non' ;
|
||||
@ -2883,19 +2880,15 @@ class WsInterne extends WsScore
|
||||
$isAuthorized = false;
|
||||
|
||||
if ($this->tabInfoUser['profil']=='Administrateur' &&
|
||||
($idClient==0 || $idClient==$this->tabInfoUser['idClient']))
|
||||
{
|
||||
($idClient==0 || $idClient==$this->tabInfoUser['idClient'])){
|
||||
$idClient = $this->tabInfoUser['idClient'];
|
||||
$isAuthorized = true;
|
||||
}
|
||||
|
||||
if ($this->tabInfoUser['profil']<>'SuperAdministrateur')
|
||||
{
|
||||
if ($this->tabInfoUser['profil']<>'SuperAdministrateur'){
|
||||
$error->errnum = 1;
|
||||
$error->errmsg = 'Profil non administrateur';
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$isAuthorized = true;
|
||||
}
|
||||
|
||||
@ -2904,7 +2897,8 @@ class WsInterne extends WsScore
|
||||
$strClient = '';
|
||||
if ($idClient>0) $strClient.=" AND id='$idClient' ";
|
||||
$iDbCrm = new WDB('sdv1');
|
||||
$rep = $iDbCrm->select('clients', 'id, nom, actif, test, racineLogin, siren, nic, tva, editerFacture, fact_detail, fac_dest, fac_adr1, fac_adr2, fac_adr3, fac_email, fac_tel, fact_rib, liv_dest, liv_adr1, liv_adr2, liv_adr3, liv_email, liv_tel, droits, filtres_ip, dateInsert, dateUpdate, respComSD, typeContrat, dateSignature, typeAcces, typeScore, accesPieces, accesKbis, accesInvestigations, accesInternationnal, accesEnquetes, miseSousSurveillance, forfaitExtranetPeriode, forfaitExtranetMontant, reconductionAuto, remarque, forfaitPiecesNb, forfaitPiecesMt, forfaitPiecesDep, forfaitInvestigNb, forfaitInvestigMt, forfaitInvestigDep, tarifIndiscore', "1 $strClient", true, MYSQL_ASSOC);
|
||||
$rep = $iDbCrm->select('clients',
|
||||
'id, nom, actif, test, racineLogin, siren, nic, tva, editerFacture, fact_detail, fac_dest, fac_adr1, fac_adr2, fac_adr3, fac_email, fac_tel, fact_rib, liv_dest, liv_adr1, liv_adr2, liv_adr3, liv_email, liv_tel, droits, filtres_ip, dateInsert, dateUpdate, respComSD, typeContrat, dateSignature, typeAcces, typeScore, accesPieces, accesKbis, accesInvestigations, accesInternationnal, accesEnquetes, miseSousSurveillance, forfaitExtranetPeriode, forfaitExtranetMontant, reconductionAuto, remarque, forfaitPiecesNb, forfaitPiecesMt, forfaitPiecesDep, forfaitInvestigNb, forfaitInvestigMt, forfaitInvestigDep, tarifIndiscore', "1 $strClient", true, MYSQL_ASSOC);
|
||||
$tabRet = array();
|
||||
foreach ($rep as $uti)
|
||||
{
|
||||
@ -2966,6 +2960,7 @@ class WsInterne extends WsScore
|
||||
$output = new ListeClientsReturn();
|
||||
$output->error = $error;
|
||||
$output->result = $tabRet;
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user