Browse Source

Merge pull request #14779 from abpframework/auto-merge/rel-7-0/1486

Merge branch dev with rel-7.0
pull/14781/head
liangshiwei 4 years ago
committed by GitHub
parent
commit
eee346ef4b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      framework/src/Volo.Abp.Features/Volo/Abp/Features/FeatureGroupDefinition.cs

8
framework/src/Volo.Abp.Features/Volo/Abp/Features/FeatureGroupDefinition.cs

@ -53,7 +53,8 @@ public class FeatureGroupDefinition : ICanCreateChildFeature
ILocalizableString displayName = null,
ILocalizableString description = null,
IStringValueType valueType = null,
bool isVisibleToClients = true)
bool isVisibleToClients = true,
bool isAvailableToHost = true)
{
var feature = new FeatureDefinition(
name,
@ -61,7 +62,8 @@ public class FeatureGroupDefinition : ICanCreateChildFeature
displayName,
description,
valueType,
isVisibleToClients
isVisibleToClients,
isAvailableToHost
);
_features.Add(feature);
@ -77,7 +79,7 @@ public class FeatureGroupDefinition : ICanCreateChildFeature
bool isVisibleToClients = true,
bool isAvailableToHost = true)
{
return AddFeature(name, defaultValue, displayName, description, valueType, isVisibleToClients);
return AddFeature(name, defaultValue, displayName, description, valueType, isVisibleToClients, isAvailableToHost);
}
public virtual List<FeatureDefinition> GetFeaturesWithChildren()
{

Loading…
Cancel
Save