UserHasRight Method

Description
Returns whether the currently logged in user has the specified right.

Syntax
Function UserHasRight (SpelUserRights Right) As Boolean

Parameters

  • Right
    The right you want to check for the currently logged-in user.

Return Value
True if the user has the specified right, False if not.

See Also
Login Method, GetCurrentUser Method

UserHasRight Example
VB Example:

Dim hasRight As Boolean  
hasRight = m_spel.UserHasRight(SpelUserRights.EditPoints)  

C# Example:

bool hasRight;  
hasRight = m_spel.UserHasRight(SpelUserRights.EditPoints);