function _check_access() { if ($this->uri->rsegments[2] == 'report') { return true; } return parent::_check_access(); }
function _check_access() { $whitelist = array('fetch'); if (in_array($this->uri->rsegments[2], $whitelist) && $this->auth->is_login()) { return true; } return parent::_check_access(); }
function _check_access() { $allowed = array('view', 'tag'); foreach ($allowed as $allow) { if ($this->uri->rsegments[2] == $allow) { return true; } } return parent::_check_access(); }
function _check_access() { $whitelist = array('login', 'unauthorized', 'register', 'check_session'); if (in_array($this->uri->rsegments[2], $whitelist)) { return true; } $whitelist = array('change_password', 'profile', 'logout'); if (in_array($this->uri->rsegments[2], $whitelist) && $this->auth->is_login()) { return true; } return parent::_check_access(); }
function _check_access() { $allows = array('activation', 'generate_activation_code', 'profile', 'request_invitation'); foreach ($allows as $allow) { if ($allow == $this->uri->rsegments[2]) { return true; } } return parent::_check_access(); }