Nette\Security\User::isLoggedIn PHP Method

isLoggedIn() public method

Is this user authenticated?
public isLoggedIn ( ) : boolean
return boolean
    public function isLoggedIn()
    {
        return $this->storage->isAuthenticated();
    }

Usage Example

 /**
  * @inheritdoc
  */
 public function authorize($resource, $action, $parameters = NULL)
 {
     if (!$this->user->isLoggedIn()) {
         throw new AuthorizationException('User is not logged in.');
     }
     return TRUE;
 }
All Usage Examples Of Nette\Security\User::isLoggedIn