This commit is contained in:
Paul Schneider 2022-04-09 19:53:26 +01:00
commit 1befc2e053
38 changed files with 427 additions and 309 deletions

View file

@ -245,9 +245,9 @@ namespace isnd.Controllers
{
var user = await _userManager.FindByNameAsync(username);
var roles = await _userManager.GetRolesAsync(user);
if (!roles.Contains(Constants.AdministratorRoleName))
if (!roles.Contains(IsndConstants.AdministratorRoleName))
{
await _userManager.AddToRoleAsync(user, Constants.AdministratorRoleName);
await _userManager.AddToRoleAsync(user, IsndConstants.AdministratorRoleName);
}
return Ok();