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
@@ -30,7 +30,7 @@ namespace Disco.Services.Authorization.Roles
return new RoleToken()
{
Role = Role,
SubjectIdHashes = new HashSet<string>(sg.Select(i => i.ToLower()), StringComparer.OrdinalIgnoreCase),
SubjectIdHashes = new HashSet<string>(sg, StringComparer.OrdinalIgnoreCase),
SubjectIds = sg.ToList(),
Claims = Claims
};