* When service setting flag is on, self hosted workspaces can initiate process for self-serve sign up
* Add hosted_customer api.
Этот коммит содержится в:
Nathaniel Allred
2022-11-29 13:32:08 -06:00
коммит произвёл GitHub
родитель 2455de99ff
Коммит 4f3f6e6496
12 изменённых файлов: 249 добавлений и 1 удалений

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

@@ -383,6 +383,7 @@ type ServiceSettings struct {
CollapsedThreads *string `access:"experimental_features"`
ManagedResourcePaths *string `access:"environment_web_server,write_restrictable,cloud_restrictable"`
EnableCustomGroups *bool `access:"site_users_and_teams"`
SelfHostedFirstTimePurchase *bool `access:"write_restrictable,cloud_restrictable"`
AllowSyncedDrafts *bool `access:"site_posts"`
}
@@ -852,6 +853,10 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
if s.AllowSyncedDrafts == nil {
s.AllowSyncedDrafts = NewBool(true)
}
if s.SelfHostedFirstTimePurchase == nil {
s.SelfHostedFirstTimePurchase = NewBool(false)
}
}
type ClusterSettings struct {