Packagecom.smartfoxserver.v2.entities
Classpublic class UserPrivileges
InheritanceUserPrivileges Inheritance Object

The UserPrivileges class contains the costants describing the default user types known by SmartFoxServer. The server assigns one of these values or a custom-defined one to the User.privilegeId property whenever a user logs in.

Read the SmartFoxServer 2X documentation for more informations about privilege profiles and their permissions.

See also

User.privilegeId


Public Constants
 ConstantDefined By
  ADMINISTRATOR : int = 3
[static] The administrator user can send dedicated "administrator messages", kick and ban users.
UserPrivileges
  GUEST : int = 0
[static] The Guest user is usually the lowest level in the privilege profiles scale.
UserPrivileges
  MODERATOR : int = 2
[static] The moderator user can send dedicated "moderator messages", kick and ban users.
UserPrivileges
  STANDARD : int = 1
[static] The standard user is usually registered in the application custom login system; uses a unique name and password to login.
UserPrivileges
Constant Detail
ADMINISTRATORConstant
public static const ADMINISTRATOR:int = 3

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

See also

GUESTConstant 
public static const GUEST:int = 0

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

MODERATORConstant 
public static const MODERATOR:int = 2

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

See also

STANDARDConstant 
public static const STANDARD:int = 1

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