NavMenu.razorVersion:
1.0.0
Dependencies
Services:UserService, GroupService, AdminSettingsService
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Navigation menu component used in the MainLayout.razor.
NavMenu.razor1.0.0
| Variable Name | Type | Description |
|---|---|---|
_uploadPermissionsGroupId | string | Guid of the general upload permissions group |
_userInUploadPermissionsGroup | bool | Indicates whether current user is in the general upload permission group |
protected override async Task OnInitializedAsync()
{
await UserService.InitializeCurrentUserAsync();
if ( UserService.CurrentUser != null )
{
_userInUploadPermissionsGroup = await GroupService.UserIsInGroup( UserService.CurrentUser.Id, _uploadPermissionsGroupId );
}
}
