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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user