public static bool IsUserInRole(string groupName) { return IsUserInRole(SecurityData.CurrentUserIdentityName, groupName); }
public bool RemoveFromRole(string roleName) { if (SecurityData.IsUserInRole(this.UserName, roleName)) { SecurityData.RemoveUserFromRole(this.UserName, roleName); return(true); } else { return(false); } }