/** * Dashboard, the home for this web application * * @return void */ public function dashboardAction() { Streamwide_Web_Log::debug('rendering the dashboard'); $request = $this->getRequest(); $viewDatas = array(); $viewDatas['IsSuperAdmin'] = SwIRS_Web_Request::isSuperAdmin($request); if (!SwIRS_Web_Request::isSuperAdmin($request) && !SwIRS_Web_Request::isVisitor($request)) { $viewDatas['TreeLists'] = Streamwide_Web_Model::call('Tree.GetLastModified', array(false)); } $this->view->assign($viewDatas); }
/** * Acl, error while the access deny * For Role[visitor] (@see SwIRS_Web_Request::isVisitor()), redirect to homepage * Otherwise, displayed the 403 Error page * * @return void */ public function aclAction() { $this->getHelper('Layout')->disableLayout(); Streamwide_Web_Log::debug('acl rejected'); $request = $this->getRequest(); if (SwIRS_Web_Request::isVisitor($request)) { Streamwide_Web_Log::debug('redirect the role[visitor] to homepage'); $this->getHelper('ViewRenderer')->setNoRender(); $this->getHelper('Redirector')->gotoSimpleAndExit('index', 'index'); } else { // 403 error -- HTTP Error 403, access forbidden $this->getResponse()->setHttpResponseCode(403); } }