Add extension to ClaimsPrincipal

This commit is contained in:
2025-11-13 09:38:54 +09:00
parent 9bd8778e34
commit b5e5b0ecd2
7 changed files with 24 additions and 5 deletions

View File

@ -57,7 +57,7 @@
ChangeState(PageState.Loading);
var state = await AuthenticationStateProvider.GetAuthenticationStateAsync();
if (state.User.IsInRole(AppRole.ADMINISTRATOR_TYPE) || state.User.IsInRole(AppRole.OPERATOR_TYPE))
if (state.User.IsOperatorOrHigher())
{
operations = await HeadquartersService.GetOperationsAsync();