From a0ebfe4d14b66bc66cddee7e96d184b76de34344 Mon Sep 17 00:00:00 2001 From: benoitpotier Date: Tue, 21 Mar 2017 09:47:05 +0100 Subject: [PATCH] =?UTF-8?q?modification=20de=20la=20visibilit=C3=A9=20des?= =?UTF-8?q?=20rapports=20confidentiels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/FinanceController.php | 1 + .../views/default/scripts/finance/liasselist.phtml | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/application/modules/default/controllers/FinanceController.php b/application/modules/default/controllers/FinanceController.php index b788ca42c..4aa606061 100644 --- a/application/modules/default/controllers/FinanceController.php +++ b/application/modules/default/controllers/FinanceController.php @@ -852,6 +852,7 @@ class FinanceController extends Zend_Controller_Action $this->view->assign('raisonSociale', $entreprise->getRaisonSociale()); $this->view->assign('siren', substr($this->siret, 0, 9)); $this->view->assign('siret', $this->siret); + $this->view->assign('idClient', $user->identity->idClient); $this->view->haveLiasse = ($bilanList->nbReponses > 0) ? true : false; diff --git a/application/modules/default/views/default/scripts/finance/liasselist.phtml b/application/modules/default/views/default/scripts/finance/liasselist.phtml index 98a4ebb63..cb91ef263 100644 --- a/application/modules/default/views/default/scripts/finance/liasselist.phtml +++ b/application/modules/default/views/default/scripts/finance/liasselist.phtml @@ -92,13 +92,13 @@ switch ($type) { $date = new Zend_Date($element->dateExercicePre, 'yyyyMMdd'); echo $date->toString('dd/MM/yyyy'); } ?> - dureeExercicePre > 0) {?>dureeExercicePre?> Mois - confidentiel) : ?> - Confidentiel - + idClient == 1 || ($this->idClient == $element->confidentiel || 0 == $element->confidentiel)) : ?> Visualiser + + Confidentiel @@ -155,12 +155,12 @@ switch ($type) { ?> - dureeExercicePre > 0) {?>dureeExercicePre?> Mois - confidentiel) : ?> - Confidentiel - + idClient == 1 || ($this->idClient == $element->confidentiel || 0 == $element->confidentiel)) : ?> Visualiser + + Confidentiel