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) { } }
function init() { parent::init(); $this->assert(null, 'site', 'admin', "Espace réservé aux administrateurs"); }