Exemplo n.º 1
0
 protected function _initAcl()
 {
     if (!$this->getRequest()->isInstalling()) {
         $is_editor = !$this->getRequest()->isApplication() && !$this->_isInstanceOfBackoffice();
         if ($is_editor and $this->getSession()->isLoggedIn()) {
             $acl = new Acl_Model_Acl();
             $acl->prepare($this->getSession()->getAdmin());
             Core_View_Default::setAcl($acl);
             Admin_Controller_Default::setAcl($acl);
         }
     }
 }