Gestion des droits pour la surveillance

This commit is contained in:
Michael RICOIS 2012-02-22 10:22:02 +00:00
parent fa0c043ca7
commit 197074fd14
2 changed files with 5 additions and 1 deletions

View File

@ -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')) ) {

View File

@ -26,7 +26,8 @@
<?php endif ?>
</td>
</tr>
<tr>
<?php if (!empty($this->surveillance)):?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?=$this->action('infos','surveillance', null, array(
@ -35,6 +36,7 @@
))?>
</td>
</tr>
<?php endif;?>
</table>
</div>