Update common registries page
This commit is contained in:
@ -71,9 +71,9 @@
|
||||
StateHasChanged();
|
||||
|
||||
var state = await AuthenticationStateProvider.GetAuthenticationStateAsync();
|
||||
if (state.User.Identity?.IsAuthenticated ?? false)
|
||||
if (state.User.IsInRole(AppRole.ADMINISTRATOR_TYPE))
|
||||
{
|
||||
currentUserId = state.User.FindFirst(ClaimTypes.NameIdentifier).Value;
|
||||
currentUserId = state.User.FindFirst(ClaimTypes.NameIdentifier)!.Value;
|
||||
usersWithRoles = await UsersService.GetUsersWithRole();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user