The Right class represents a users rights.
Hex.Right(iUserId) returns a new object of type Right.
For more information about how to create an instance of this object read Hex.Right(iUserId) section.
The rights system is hexhub is based on wich bits are set in a 64 bit number.
If you know nothing about the binary system, you should use the *ByName functions.
For more information about what rights exist in hexhub read the hexhub documentation.
Parameters:
Parameters:
Parameters:
local rights = Hex.Right(iUserId) local bResult = rights:CheckRightByName("connect0") if (bResult == true) then -- user got the right end
local rights = Hex.Right(iUserId) rights:RemoveRightByName("connect0") rights:AddRightByName("connect0")