Exemple #1
0
 function init()
 {
     parent::init();
     $acl = Zend_Registry::get('acl');
     if (!$acl->has($this)) {
         $acl->add($this);
     }
     try {
         $t = new Unites();
         $racines = $t->findRacines();
         foreach ($racines as $racine) {
             $acl->allow($racine->getRoleId('chef'), $this);
         }
     } catch (Strass_Db_Table_NotFound $e) {
     }
 }
Exemple #2
0
 function init()
 {
     parent::init();
     $this->assert(null, 'site', 'admin', "Espace réservé aux administrateurs");
 }