From 197074fd14e96b32fd7065a4eeb707a4421236a4 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 22 Feb 2012 10:22:02 +0000 Subject: [PATCH] Gestion des droits pour la surveillance --- application/controllers/JuridiqueController.php | 2 ++ application/views/default/scripts/juridique/annonce.phtml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/application/controllers/JuridiqueController.php b/application/controllers/JuridiqueController.php index 6f7c47420..f74f79300 100644 --- a/application/controllers/JuridiqueController.php +++ b/application/controllers/JuridiqueController.php @@ -75,6 +75,8 @@ class JuridiqueController extends Zend_Controller_Action $this->view->assign('AutrePage', $request->getParam('apage')); $this->view->assign('exportObjet', $infos); + $this->view->assign('surveillance', $user->checkPerm('survannonce')); + //Affichage pour une annonce if (!empty($idAnn) && in_array($vue, array('bodacc', 'abod', 'balo', 'asso', 'bomp')) ) { diff --git a/application/views/default/scripts/juridique/annonce.phtml b/application/views/default/scripts/juridique/annonce.phtml index 3977eb8ec..876a23521 100644 --- a/application/views/default/scripts/juridique/annonce.phtml +++ b/application/views/default/scripts/juridique/annonce.phtml @@ -26,7 +26,8 @@ - + surveillance)):?> +   action('infos','surveillance', null, array( @@ -35,6 +36,7 @@ ))?> +