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);
}