Home Manual Reference Source
public class | source

User

Holds information about an user.

Static Method Summary

Static Public Methods
public static

Member Summary

Public Members
public get
public get
public get

roles: Role[]

public get

Static Public Methods

public static current(): User source

Return:

User

the current user.

Public Members

public get administrator: boolean source

Return:

boolean

true if this user belongs to the role Administrator, false otherwise.

public get name: string source

Return:

string

the user name.

public get roles: Role[] source

Return:

Role[]

the roles of this user.

public get superuser: boolean source

Return:

boolean

true if this user belongs to the role SuperUser, false otherwise.