Browse Source
Merge pull request #14294 from abpframework/EngincanV/cms-kit-homepage
cms-kit: Check the pages feature is enabled for homepage middleware
pull/14310/head
Engincan VESKE
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/CmsKitPublicWebModule.cs
|
|
|
@ -116,6 +116,10 @@ public class CmsKitPublicWebModule : AbpModule |
|
|
|
public override void OnApplicationInitialization(ApplicationInitializationContext context) |
|
|
|
{ |
|
|
|
var app = context.GetApplicationBuilder(); |
|
|
|
app.UseHomePageDefaultMiddleware(); |
|
|
|
|
|
|
|
if (GlobalFeatureManager.Instance.IsEnabled<PagesFeature>()) |
|
|
|
{ |
|
|
|
app.UseHomePageDefaultMiddleware(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|