/** * Check current role if has the right to access the $action * @param string $action * @return bool */ protected function checkAcl($action) { $moudle = $this->getRequest()->getModuleName(); $auth = Zend_Auth::getInstance(); $acl = SP_Application::getAcl(); if ($acl->isAllowed($auth->getStorage()->read()->role, ucfirst($moudle), $action)) { return true; } return false; }