protected function _isUserAllowed($resource, $privilege)
 {
     parent::_isUserAllowed($resource, $privilege);
     if (Zend_Auth::getInstance()->hasIdentity()) {
         return true;
     } else {
         $this->_redirectLogin();
         return false;
     }
 }
 protected function _isUserAllowed($resource, $privilege)
 {
     if (parent::_isUserAllowed($resource, $privilege)) {
         return true;
     } else {
         $this->_helper->flashMessenger->addMessage(array('warning' => 'You don\'t have permission to access this'));
         $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper("redirector");
         $redirector->gotoUrl("/");
     }
 }