/** * authenticate * * authenticate, then check isSysAdmin * * @access public * @return void */ public function authenticate() { if (!parent::authenticate()) { return false; } return $this->user->isSysAdmin(); }
/** * authenticate * * authenticate, then check for isUserAdmin privileges * * @access public * @return void */ public function authenticate() { if (!parent::authenticate()) { return false; } $domain = !is_null($this->domain) ? $this->domain : $this->user->loginUser['domain']; $name = isset($_REQUEST['account']) ? $_REQUEST['account'] : $this->user->loginUser['name']; return $this->user->isUserAdmin($name, $domain); }
/** * authenticate * * authenticate, then check for domain level privileges * * @access public * @return void */ public function authenticate() { if (!parent::authenticate()) { return false; } if ($this->user->isSysAdmin()) { return true; } $domain = !is_null($this->domain) ? $this->domain : $this->user->loginUser['domain']; return $this->user->isDomainAdmin($domain); }