diff --git a/LANCommander/Pages/Redistributables/Edit.razor b/LANCommander/Pages/Redistributables/Edit.razor index c39a8a7..cdb1fcb 100644 --- a/LANCommander/Pages/Redistributables/Edit.razor +++ b/LANCommander/Pages/Redistributables/Edit.razor @@ -2,6 +2,7 @@ @page "/Redistributables/{id:guid}/{panel}" @page "/Redistributables/Add" @using LANCommander.Data.Enums; +@attribute [Authorize(Roles = "Administrator")] @inject RedistributableService RedistributableService @inject IMessageService MessageService @inject NavigationManager NavigationManager diff --git a/LANCommander/Pages/Redistributables/Index.razor b/LANCommander/Pages/Redistributables/Index.razor index 84d88ac..c9e2420 100644 --- a/LANCommander/Pages/Redistributables/Index.razor +++ b/LANCommander/Pages/Redistributables/Index.razor @@ -1,6 +1,6 @@ @page "/Redistributables" @using Microsoft.EntityFrameworkCore; -@attribute [Authorize] +@attribute [Authorize(Roles = "Administrator")] @inject RedistributableService RedistributableService @inject NavigationManager NavigationManager @inject IMessageService MessageService