new UserPrivileges()

Developers never istantiate the UserPrivileges class: only use its static properties.

Values contained in this class (or custom-defined ones) are assigned to the SFSUser.privilegeId property whenever a user logs in.
Read the SmartFoxServer 2X documentation for more informations about privilege profiles and their permissions.

See also
SFSUser#isGuest
SFSUser#isStandardUser
SFSUser#isModerator
SFSUser#isAdmin
SFSUser#privilegeId

Properties

constant static

ADMINISTRATOR  number

The administrator user can send dedicated "administrator messages", kick and ban users.

See also
AdminMessageRequest
KickUserRequest
BanUserRequest
constant static

GUEST  number

The Guest user is usually the lowest level in the privilege profiles scale.

constant static

MODERATOR  number

The moderator user can send dedicated "moderator messages", kick and ban users.

See also
ModeratorMessageRequest
KickUserRequest
BanUserRequest
constant static

STANDARD  number

The standard user is usually registered in the application custom login system; uses a unique name and password to login.