mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-03 13:22:12 +00:00
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:
@@ -37,6 +37,7 @@ type FeaturesSetEvent struct {
|
||||
CustomDomain *bool `json:"customDomain,omitempty"`
|
||||
CustomText *bool `json:"customText,omitempty"`
|
||||
PrivacyPolicy *bool `json:"privacyPolicy,omitempty"`
|
||||
MetadataUser *bool `json:"metadataUser,omitempty"`
|
||||
}
|
||||
|
||||
func (e *FeaturesSetEvent) Data() interface{} {
|
||||
@@ -167,6 +168,11 @@ func ChangePrivacyPolicy(privacyPolicy bool) func(event *FeaturesSetEvent) {
|
||||
}
|
||||
}
|
||||
|
||||
func ChangeMetadataUser(metadataUser bool) func(event *FeaturesSetEvent) {
|
||||
return func(e *FeaturesSetEvent) {
|
||||
e.MetadataUser = &metadataUser
|
||||
}
|
||||
}
|
||||
func FeaturesSetEventMapper(event *repository.Event) (eventstore.EventReader, error) {
|
||||
e := &FeaturesSetEvent{
|
||||
BaseEvent: *eventstore.BaseEventFromRepo(event),
|
||||
|
||||
Reference in New Issue
Block a user