Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chenriksson committed Feb 15, 2018
1 parent 4ee70a3 commit a8a7e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NuGetGallery/Services/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public async Task DeleteMemberAsync(Organization organization, string memberName
}

// block removal of last admin
if (membership.IsAdmin && organization.Members.Count(m => m.IsAdmin) == 1)
if (membership.IsAdmin && organization.Administrators.Count() == 1)
{
throw new EntityException(string.Format(CultureInfo.CurrentCulture,
Strings.UpdateOrDeleteMember_CannotRemoveLastAdmin, memberName));
Expand Down

0 comments on commit a8a7e4b

Please sign in to comment.