Restrict settings to admins

pull/19/head
Pat Hartl 2023-04-01 18:03:18 -05:00
parent 7f99d7f5df
commit 1597bcf22d
4 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
@layout SettingsLayout
@inject SettingService SettingService
@inject IMessageService MessageService
@attribute [Authorize(Roles = "Administrator")]
<PageHeader Title="Authentication" />

View File

@ -4,6 +4,7 @@
@layout SettingsLayout
@inject SettingService SettingService
@inject IMessageService MessageService
@attribute [Authorize(Roles = "Administrator")]
<PageHeader Title="General" />

View File

@ -1,5 +1,6 @@
@inherits LayoutComponentBase
@layout MainLayout
@attribute [Authorize(Roles = "Administrator")]
<Layout Class="site-layout-background" Style="padding: 24px 0;">
<Sider Class="site-layout-background" Width="200">

View File

@ -4,6 +4,7 @@
@inject UserManager<User> UserManager
@inject RoleManager<Role> RoleManager
@inject IMessageService MessageService
@attribute [Authorize(Roles = "Administrator")]
<PageHeader Title="Users" />