public function beforeAction($action) { $accion = str_ireplace("action", "", $action->actionMethod); try { if (!SeguridadUsuarios::hasAccess($this->module->id, $this->id, $accion)) { throw new ForbiddenHttpException("DISCULPE USTED NO POSEE LOS PERMISOS NECESARIOS PARA ENTRAR AL SISTEMA"); } } catch (Exception $ex) { $this->redirect(['/site/index']); } return true; }