From 19c421633a18b5fb3eb0b13e6443d3dfb0766f63 Mon Sep 17 00:00:00 2001 From: benoitpotier Date: Tue, 21 Mar 2017 16:31:17 +0100 Subject: [PATCH] =?UTF-8?q?autorisation=20arm=C3=A9nie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/Metier/Partenaires/MBilans.php | 3 ++- library/WsScore/Entreprise/v0.8/Service.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/library/Metier/Partenaires/MBilans.php b/library/Metier/Partenaires/MBilans.php index 487f652e..74fda94c 100644 --- a/library/Metier/Partenaires/MBilans.php +++ b/library/Metier/Partenaires/MBilans.php @@ -362,7 +362,8 @@ class Metier_Partenaires_MBilans // --- Si c'est un client qui consulte, alors il ne peut voir que ses bilans confidentiels ou tous les bilans publiques. // --- 0 : consultation de l'application (calcul du score ...) // --- 1 : consultation d'un membre de scores et décisions - if ($idClient > 1) { + // --- 147 : consultation d'un opérateur de l'arménie + if ($idClient > 1 && $idClient != 147) { $where.= " AND (confidentiel_client == '".$idClient."' OR confidentiel = 0)"; } diff --git a/library/WsScore/Entreprise/v0.8/Service.php b/library/WsScore/Entreprise/v0.8/Service.php index c4ea7563..91c51281 100644 --- a/library/WsScore/Entreprise/v0.8/Service.php +++ b/library/WsScore/Entreprise/v0.8/Service.php @@ -4331,7 +4331,7 @@ class Entreprise extends Scores_Ws_Server $element->monnaie = $bilan['monnaie']; $element->source = $bilan['source']; $element->confidentiel = $bilan['confidentiel']; - $element->confidentielClient = $bilan['confidentielClient']; + $element->confidentielClient = $bilan['confidentielClient']; $tabRet[] = $element; }