Add in-product expansion config.

Этот коммит содержится в:
Conor Macpherson
2023-03-01 17:17:23 -05:00
родитель d44065d4b3
Коммит 46a693e421

Просмотреть файл

@@ -385,6 +385,7 @@ type ServiceSettings struct {
EnableCustomGroups *bool `access:"site_users_and_teams"`
SelfHostedPurchase *bool `access:"write_restrictable,cloud_restrictable"`
AllowSyncedDrafts *bool `access:"site_posts"`
InProductExpansion *bool `access:"write_restrictable,cloud_restrictable"`
}
func (s *ServiceSettings) SetDefaults(isUpdate bool) {
@@ -857,6 +858,10 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
if s.SelfHostedPurchase == nil {
s.SelfHostedPurchase = NewBool(true)
}
if s.InProductExpansion == nil {
s.InProductExpansion = NewBool(false)
}
}
type ClusterSettings struct {