Browse Source
Merge pull request #9149 from abpframework/berkan/AuthorizePage-for-SettingManagement
Add AuthorizePage for SettingManagement
pull/9162/head
ebicoglu
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
1 deletions
-
modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Pages/SettingManagement/SettingManagement.razor
-
modules/setting-management/src/Volo.Abp.SettingManagement.Web/AbpSettingManagementWebModule.cs
|
|
|
@ -1,4 +1,6 @@ |
|
|
|
@page "/setting-management" |
|
|
|
@using Microsoft.AspNetCore.Authorization |
|
|
|
@attribute [Authorize(SettingManagementPermissions.Emailing)] |
|
|
|
|
|
|
|
@* ************************* PAGE HEADER ************************* *@ |
|
|
|
<PageHeader Title="@L["Settings"]" BreadcrumbItems="@BreadcrumbItems"> |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
@ -42,6 +43,11 @@ namespace Volo.Abp.SettingManagement.Web |
|
|
|
options.FileSets.AddEmbedded<AbpSettingManagementWebModule>(); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<RazorPagesOptions>(options => |
|
|
|
{ |
|
|
|
options.Conventions.AuthorizePage("/SettingManagement/Index", SettingManagementPermissions.Emailing); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpBundlingOptions>(options => |
|
|
|
{ |
|
|
|
options.ScriptBundles |
|
|
|
|