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

IsInAnyRole() public method

Determines if this user has access to perform actions in any of the specified roles.
public IsInAnyRole ( ) : bool
return bool
        public bool IsInAnyRole(params string[] roles)
        {
            EnsureRolesLoadedIfAuthenticated();
            var roleNames = new List<string>(roles);
            return _roles != null && _roles.Exists(roleNames.Contains);
        }