mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-21 05:50:51 +00:00
fix: set custom domains feature on orgs (#1623)
This commit is contained in:
@@ -68,7 +68,8 @@ func (wm *OrgFeaturesWriteModel) NewSetEvent(
|
||||
loginPolicyRegistration,
|
||||
loginPolicyUsernameLogin,
|
||||
passwordComplexityPolicy,
|
||||
labelPolicy bool,
|
||||
labelPolicy,
|
||||
customDomain bool,
|
||||
) (*org.FeaturesSetEvent, bool) {
|
||||
|
||||
changes := make([]features.FeaturesChanges, 0)
|
||||
@@ -109,6 +110,9 @@ func (wm *OrgFeaturesWriteModel) NewSetEvent(
|
||||
if wm.LabelPolicy != labelPolicy {
|
||||
changes = append(changes, features.ChangeLabelPolicy(labelPolicy))
|
||||
}
|
||||
if wm.CustomDomain != customDomain {
|
||||
changes = append(changes, features.ChangeCustomDomain(customDomain))
|
||||
}
|
||||
|
||||
if len(changes) == 0 {
|
||||
return nil, false
|
||||
|
Reference in New Issue
Block a user