diff --git a/application/controllers/DirigeantController.php b/application/controllers/DirigeantController.php index 592d263f9..27fe26f3d 100644 --- a/application/controllers/DirigeantController.php +++ b/application/controllers/DirigeantController.php @@ -57,6 +57,9 @@ class DirigeantController extends Zend_Controller_Action $this->view->assign('exportObjet', $dirigeants); $this->view->assign('AutrePage', $this->getRequest()->getParam('apage')); + + $user = new Utilisateur(); + $this->view->assign('surveillance', $user->checkPerm('survdirigeants')); } /** @@ -86,6 +89,9 @@ class DirigeantController extends Zend_Controller_Action $this->view->assign('siret', $this->siret); $this->view->assign('raisonSociale', $session->getRaisonSociale()); $this->view->assign('infos', $infos); + + $user = new Utilisateur(); + $this->view->assign('surveillance', $user->checkPerm('survdirigeants')); } public function opAction() @@ -112,6 +118,9 @@ class DirigeantController extends Zend_Controller_Action $this->view->assign('dirigeants', $dirigeants); $this->view->assign('exportObjet', $dirigeants); - $this->view->assign('AutrePage', $this->getRequest()->getParam('apage')); + $this->view->assign('AutrePage', $this->getRequest()->getParam('apage')); + + $user = new Utilisateur(); + $this->view->assign('surveillance', $user->checkPerm('survdirigeants')); } } \ No newline at end of file diff --git a/application/controllers/EvaluationController.php b/application/controllers/EvaluationController.php index 2be292b39..0aea9c238 100644 --- a/application/controllers/EvaluationController.php +++ b/application/controllers/EvaluationController.php @@ -97,6 +97,8 @@ class EvaluationController extends Zend_Controller_Action $this->view->assign('indiscore', $infos); $this->view->assign('AutrePage', $autrePage); $this->view->assign('exportObjet', $infos); + + $this->view->assign('surveillance', $user->checkPerm('survscore')); } /** diff --git a/application/controllers/FinanceController.php b/application/controllers/FinanceController.php index c8abe8686..f77598221 100644 --- a/application/controllers/FinanceController.php +++ b/application/controllers/FinanceController.php @@ -931,6 +931,8 @@ class FinanceController extends Zend_Controller_Action if ( $user->checkPerm('UPLOADBILAN') ) { $this->view->assign('saisiebilan', true); } + $this->view->assign('surveillance', $user->checkPerm('survbilan')); + /** Partie vue **/ $this->view->haveLiasse = ($listBilan->nbReponses > 0) ? true : false; diff --git a/application/controllers/PiecesController.php b/application/controllers/PiecesController.php index 195ced7cd..152de73e4 100644 --- a/application/controllers/PiecesController.php +++ b/application/controllers/PiecesController.php @@ -340,6 +340,8 @@ class PiecesController extends Zend_Controller_Action $this->view->assign('siren', $siren); $this->view->assign('siret', $this->siret); $this->view->assign('raisonSociale', $this->entrep->getRaisonSociale()); + + $this->view->assign('surveillance', $user->checkPerm('survbilan')); } /** @@ -466,6 +468,8 @@ class PiecesController extends Zend_Controller_Action $this->view->assign('siren', $siren); $this->view->assign('siret', $this->siret); $this->view->assign('raisonSociale', $this->entrep->getRaisonSociale()); + + $this->view->assign('surveillance', $user->checkPerm('survactes')); } /** @@ -656,6 +660,9 @@ class PiecesController extends Zend_Controller_Action $session = new SessionEntreprise($this->siret, $this->id); $this->view->assign('raisonSociale', $session->getRaisonSociale()); + + $user = new Utilisateur(); + $this->view->assign('surveillance', $user->checkPerm('survactes')); } public function statutsAction() @@ -1716,6 +1723,9 @@ class PiecesController extends Zend_Controller_Action $this->view->assign('siren', $siren); $this->view->assign('siret', $this->siret); $this->view->assign('raisonSociale', $session->getRaisonSociale()); + + $user = new Utilisateur(); + $this->view->assign('surveillance', $user->checkPerm('survpriv')); } diff --git a/application/views/default/scripts/dirigeant/histo.phtml b/application/views/default/scripts/dirigeant/histo.phtml index 3ff425edd..26eb15ecd 100644 --- a/application/views/default/scripts/dirigeant/histo.phtml +++ b/application/views/default/scripts/dirigeant/histo.phtml @@ -16,6 +16,7 @@
diff --git a/application/views/default/scripts/juridique/annonce.phtml b/application/views/default/scripts/juridique/annonce.phtml index 2f44ff561..15497e4de 100644 --- a/application/views/default/scripts/juridique/annonce.phtml +++ b/application/views/default/scripts/juridique/annonce.phtml @@ -26,7 +26,7 @@ - surveillance)):?> + surveillance) {?>