public bool IsCurrentUserInRole(string role) { if (role == null) { throw new ArgumentNullException("role"); } ApplicationServiceHelper.EnsureRoleServiceEnabled(); return(Roles.IsUserInRole(role)); }
public string[] GetRolesForCurrentUser() { ApplicationServiceHelper.EnsureRoleServiceEnabled(); return(Roles.GetRolesForUser()); }