fix: add user metadata to the features (#2179)

* fix: add user metadata to the features

* fix: remove user metadata

* fix: add test

* fix: add test
This commit is contained in:
Fabi
2021-08-12 16:10:01 +02:00
committed by GitHub
parent b104011418
commit d1c03fd15c
25 changed files with 402 additions and 10 deletions

View File

@@ -30,6 +30,7 @@ type FeaturesView struct {
CustomDomain bool
CustomText bool
PrivacyPolicy bool
MetadataUser bool
}
func (f *FeaturesView) FeatureList() []string {
@@ -70,6 +71,9 @@ func (f *FeaturesView) FeatureList() []string {
if f.PrivacyPolicy {
list = append(list, domain.FeaturePrivacyPolicy)
}
if f.MetadataUser {
list = append(list, domain.FeatureMetadataUser)
}
return list
}