Browse Source

Update CmsKitContentWidgetOptions.cs

pull/24110/head
EngincanV 11 months ago
parent
commit
803b991dc6
  1. 4
      modules/cms-kit/src/Volo.CmsKit.Common.Web/Pages/CmsKit/Components/Contents/CmsKitContentWidgetOptions.cs

4
modules/cms-kit/src/Volo.CmsKit.Common.Web/Pages/CmsKit/Components/Contents/CmsKitContentWidgetOptions.cs

@ -25,12 +25,12 @@ public class CmsKitContentWidgetOptions
{
Check.NotNull(globalFeatureType, nameof(globalFeatureType));
if(globalFeatureType.GetCustomAttribute<GlobalFeatureNameAttribute>() == null)
if (globalFeatureType.GetCustomAttribute<GlobalFeatureNameAttribute>() == null)
{
throw new ArgumentException($"The type {globalFeatureType.Name} must have a {nameof(GlobalFeatureNameAttribute)} attribute.", nameof(globalFeatureType));
}
if(!GlobalFeatureManager.Instance.IsEnabled(globalFeatureType))
if (!GlobalFeatureManager.Instance.IsEnabled(globalFeatureType))
{
return;
}

Loading…
Cancel
Save