|
|
@ -7,7 +7,7 @@ using Volo.Abp.SettingManagement.Localization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Volo.Abp.SettingManagement.Blazor.Settings
|
|
|
|
namespace Volo.Abp.SettingManagement.Blazor.Settings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class EmailSettingManagementPageContributor: ISettingComponentContributor
|
|
|
|
public class EmailSettingPageContributor: ISettingComponentContributor
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public async Task ConfigureAsync(SettingComponentCreationContext context)
|
|
|
|
public async Task ConfigureAsync(SettingComponentCreationContext context)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -20,7 +20,7 @@ namespace Volo.Abp.SettingManagement.Blazor.Settings
|
|
|
|
context.Groups.Add(
|
|
|
|
context.Groups.Add(
|
|
|
|
new SettingComponentGroup(
|
|
|
|
new SettingComponentGroup(
|
|
|
|
"Volo.Abp.SettingManagement",
|
|
|
|
"Volo.Abp.SettingManagement",
|
|
|
|
l["Menu:EmailSettingManagement"],
|
|
|
|
l["Menu:EmailSetting"],
|
|
|
|
typeof(EmailSettingGroupViewComponent)
|
|
|
|
typeof(EmailSettingGroupViewComponent)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -35,7 +35,7 @@ namespace Volo.Abp.SettingManagement.Blazor.Settings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var authorizationService = context.ServiceProvider.GetRequiredService<IAuthorizationService>();
|
|
|
|
var authorizationService = context.ServiceProvider.GetRequiredService<IAuthorizationService>();
|
|
|
|
|
|
|
|
|
|
|
|
return await authorizationService.IsGrantedAsync(SettingManagementPermissions.EmailSettingManagement);
|
|
|
|
return await authorizationService.IsGrantedAsync(SettingManagementPermissions.EmailSetting);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|