Candor.Security.UserPrincipal.IsInRole C# (CSharp) Method

IsInRole() public method

Determines if this user has access to perform actions of the specified role.
public IsInRole ( string role ) : bool
role string The role name. Use a value from KnownRoles for /// standard role names.
return bool
        public bool IsInRole(string role)
        {
            EnsureRolesLoadedIfAuthenticated();
            return _roles != null && _roles.Exists(r => r == role);
        }