Navmenu related to current authorized user's role
This commit is contained in:
		| @@ -199,7 +199,7 @@ | ||||
|         try | ||||
|         { | ||||
|             var applicationId = Guid.Parse(ApplicationId); | ||||
|             currentRole = UserDataProvider.GetCurrentRole() ?? throw new NotLoggedInException(); | ||||
|             currentRole = UserDataProvider.CurrentRole ?? throw new NotLoggedInException(); | ||||
|  | ||||
|                 application = currentRole switch | ||||
|                 { | ||||
|   | ||||
| @@ -60,7 +60,14 @@ | ||||
|  | ||||
|     protected override async Task OnInitializedAsync() | ||||
|     { | ||||
|         currentRole = UserDataProvider.GetCurrentRole()!; | ||||
|         try | ||||
|         { | ||||
|             currentRole = UserDataProvider.CurrentRole ?? throw new NotLoggedInException(); | ||||
|         } | ||||
|         catch (Exception e) | ||||
|         { | ||||
|             ErrorHandler.Handle(e); | ||||
|         } | ||||
|         await Fetch(); | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -178,7 +178,7 @@ | ||||
|  | ||||
|         @if (isNonResident) | ||||
|         { | ||||
|             requestModel.ReentryPermit = NewReentryPermit(); | ||||
|             requestModel.ReentryPermit ??= NewReentryPermit(); | ||||
|             <div class="form-block"> | ||||
|                 <h5>Re-entry permission@(Constants.RequiredFieldMarkup)</h5> | ||||
|                 <ReentryPermitInput ReentryPermit="requestModel.ReentryPermit"/> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user