Update common registries page

This commit is contained in:
2025-10-23 10:56:11 +09:00
parent ddb92ccd5b
commit 0626ce0176
12 changed files with 490 additions and 57 deletions

View File

@ -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();
}