feat: custom domain feature (#1618)

* fix: custom domain

* fix: custom domain

* fix: custom domain

* fix: custom domain feature in proto

* fix: remove custom domains on feature downgrade

* fix test

* fix: custom domain feature in proto

* ensure tests work

Co-authored-by: fabi <fabienne.gerschwiler@gmail.com>
This commit is contained in:
Livio Amstutz
2021-04-19 16:43:36 +02:00
committed by GitHub
parent 8da733315a
commit 6863aeac59
20 changed files with 692 additions and 70 deletions

View File

@@ -25,6 +25,7 @@ type FeaturesView struct {
LoginPolicyUsernameLogin bool
PasswordComplexityPolicy bool
LabelPolicy bool
CustomDomain bool
}
func (f *FeaturesView) FeatureList() []string {
@@ -50,6 +51,9 @@ func (f *FeaturesView) FeatureList() []string {
if f.LabelPolicy {
list = append(list, domain.FeatureLabelPolicy)
}
if f.CustomDomain {
list = append(list, domain.FeatureCustomDomain)
}
return list
}