Browse Source
Merge pull request #12305 from abpframework/EngincanV/cms-blog
Update BlogFeatureDataSeedContributor.cs
pull/12308/head
Enis Necipoglu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Blogs/BlogFeatureDataSeedContributor.cs
|
|
|
@ -2,6 +2,7 @@ |
|
|
|
using Volo.Abp.Data; |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
using Volo.Abp.GlobalFeatures; |
|
|
|
using Volo.CmsKit.GlobalFeatures; |
|
|
|
|
|
|
|
namespace Volo.CmsKit.Blogs; |
|
|
|
|
|
|
|
@ -20,7 +21,7 @@ public class BlogFeatureDataSeedContributor : IDataSeedContributor, ITransientDe |
|
|
|
|
|
|
|
public async Task SeedAsync(DataSeedContext context) |
|
|
|
{ |
|
|
|
if (!GlobalFeatureManager.Instance.IsEnabled<BlogFeature>()) |
|
|
|
if (!GlobalFeatureManager.Instance.IsEnabled<BlogsFeature>()) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|