public function preDispatch() { parent::preDispatch(); if (!$this->isLoggedIn()) { $this->doNoAccessError(); } }
public function preDispatch() { parent::preDispatch(); if (!$this->isLoggedIn()) { $this->doNoAccessError(); } if (!$this->setting('module_employee_enabled')) { $this->_redirect('select/select'); } }
public function preDispatch() { parent::preDispatch(); if (!$this->isLoggedIn()) { $this->doNoAccessError(); } // we extend these controllers, lets redirect to their URL if (strstr($_SERVER['HTTP_REFERER'], '/site/') && strstr($_SERVER['REQUEST_URI'], '/facility')) { $this->_redirect(str_replace('/facility/', '/site/', 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'])); } }
public function preDispatch() { $return = parent::preDispatch(); if (!$this->isLoggedIn()) { $this->doNoAccessError(); } if (!$this->hasACL('edit_country_options')) { $this->doNoAccessError(); } $this->status = ValidationContainer::instance(); return $return; }
public function preDispatch() { $rtn = parent::preDispatch(); $allowActions = array('trainingSearch'); if (!$this->isLoggedIn()) { $this->doNoAccessError(); } if (!$this->hasACL('view_create_reports') && !in_array($this->getRequest()->getActionName(), $allowActions)) { $this->doNoAccessError(); } return $rtn; }
public function preDispatch() { parent::preDispatch(); if (!$this->isLoggedIn()) { $this->doNoAccessError(); } if (!$this->setting('module_employee_enabled')) { $_SESSION['status'] = t('The employee module is not enabled on this site.'); $this->_redirect('select/select'); } if (!$this->hasACL('edit_employee')) { $this->doNoAccessError(); } }
public function preDispatch() { parent::preDispatch(); }