Navmenu related to current authorized user's role
This commit is contained in:
		| @@ -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(); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user