/** * Checks if the user is authenticated. * * @return bool */ public function isAuth() { return $this->session->isAuth() && !($this->getAuthConf('needs-activation') && $this->isActivationPending()); }