Add extension to ClaimsPrincipal
This commit is contained in:
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user