Browse Source

Update AbpTenantManagementWebModule.cs

pull/23623/head
Enis Necipoglu 1 year ago
parent
commit
47352e8b92
No known key found for this signature in database GPG Key ID: 1EC55E13241E1680
  1. 4
      modules/tenant-management/src/Volo.Abp.TenantManagement.Web/AbpTenantManagementWebModule.cs

4
modules/tenant-management/src/Volo.Abp.TenantManagement.Web/AbpTenantManagementWebModule.cs

@ -41,6 +41,8 @@ public class AbpTenantManagementWebModule : AbpModule
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddMapperlyObjectMapper<AbpTenantManagementWebModule>();
Configure<AbpNavigationOptions>(options =>
{
options.MenuContributors.Add(new AbpTenantManagementWebMainMenuContributor());
@ -51,8 +53,6 @@ public class AbpTenantManagementWebModule : AbpModule
options.FileSets.AddEmbedded<AbpTenantManagementWebModule>();
});
context.Services.AddMapperlyObjectMapper<AbpTenantManagementWebModule>();
Configure<RazorPagesOptions>(options =>
{
options.Conventions.AuthorizePage("/TenantManagement/Tenants/Index", TenantManagementPermissions.Tenants.Default);

Loading…
Cancel
Save