public function beforeControllerAction($controller, $action) { $module = $controller->getModule()->getId(); if (!$controller->filterNotAuthModule($module)) { $routes = strtolower($controller->getUniqueId() . "/" . $action->getId()); if (!$controller->filterRoutes($routes)) { if (!Ibos::app()->user->checkAccess($routes, AuthUtil::getParams($routes))) { if (isset($this->rbacErrorPage)) { $controller->redirect($this->rbacErrorPage); } else { $controller->error(Ibos::lang("Valid access", "error"), "", array("autoJump" => 0)); } } } } return true; }