Bug Fix: Update Admins blocked all Admins

The updated subject hash was case-sensitive when it should have been
reinitialized with the OrdinalIgnoreCase string comparer.
This commit is contained in:
Gary Sharp
2014-05-27 13:49:13 +10:00
parent e9042f7666
commit 825627e345
2 changed files with 2 additions and 2 deletions
@@ -91,7 +91,7 @@ namespace Disco.Services.Authorization.Roles
// Update State
_AdministratorToken.SubjectIds = SubjectIds.ToList();
_AdministratorToken.SubjectIdHashes = new HashSet<string>(SubjectIds.Select(i => i.ToLower()));
_AdministratorToken.SubjectIdHashes = new HashSet<string>(SubjectIds, StringComparer.OrdinalIgnoreCase);
}
/// <summary>