Restrict settings to admins
parent
7f99d7f5df
commit
1597bcf22d
|
@ -3,6 +3,7 @@
|
|||
@layout SettingsLayout
|
||||
@inject SettingService SettingService
|
||||
@inject IMessageService MessageService
|
||||
@attribute [Authorize(Roles = "Administrator")]
|
||||
|
||||
<PageHeader Title="Authentication" />
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
@layout SettingsLayout
|
||||
@inject SettingService SettingService
|
||||
@inject IMessageService MessageService
|
||||
@attribute [Authorize(Roles = "Administrator")]
|
||||
|
||||
<PageHeader Title="General" />
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
@inject UserManager<User> UserManager
|
||||
@inject RoleManager<Role> RoleManager
|
||||
@inject IMessageService MessageService
|
||||
@attribute [Authorize(Roles = "Administrator")]
|
||||
|
||||
<PageHeader Title="Users" />
|
||||
|
||||
|
|
Loading…
Reference in New Issue