A user of the system

Constructor

@:keepnew (user:User)

Variables

@:keepread onlyaccepted:Null<Bool>

Check if the user has accepted the sent invitation

@:keepread onlyactive:Bool

Is false when user's account was disabled

@:keepread onlydeveloper:Null<Bool>

Check if the user is a developer (has all rights)

@:keepread onlyemail:Null<String>

The user's email address

@:keepread onlyfname:Null<String>

User's first name

@:keepread onlylanguage:Null<String>

Interface language key

@:keepread onlylname:Null<String>

User's last name

@:keepread onlyroles:Array<RoleApi>

Get all roles of this user

Methods

@:keepaddRole (role:RoleApi):UserApi

Add a role to this user

@:keepdisable ():UserApi

Disable this user account

@:keepremoveRole (role:RoleApi):UserApi

Remove a role from this user