hasAuth()) { $identity = $this->getAuth()->getIdentity(); if (!empty($identity) && array_key_exists('autologinCode', $identity)) { if (count($identity) == 1) { // has only 'autologinCode' $this->authenticate(); } } } $this->acl = $this->_getAcl(); $this->assign('acl', $this->acl); return parent::_init(); } protected function _getAcl() { $view = new App_Acl_View(); $userId = App_User_Auth::getInstance()->hasIdentity() ? App_User_Auth::getInstance()->getData('id') : $this->getAuthData('id'); $acl = $view->getAcl($userId); return $acl; } }