diff --git a/app/diagnostics.go b/app/diagnostics.go index 3daaf2469e..18207c3924 100644 --- a/app/diagnostics.go +++ b/app/diagnostics.go @@ -512,6 +512,7 @@ func (s *Server) trackConfig() { "isdefault_support_email": isDefault(*cfg.SupportSettings.SupportEmail, model.SUPPORT_SETTINGS_DEFAULT_SUPPORT_EMAIL), "custom_terms_of_service_enabled": *cfg.SupportSettings.CustomTermsOfServiceEnabled, "custom_terms_of_service_re_acceptance_period": *cfg.SupportSettings.CustomTermsOfServiceReAcceptancePeriod, + "enable_ask_community_link": *cfg.SupportSettings.EnableAskCommunityLink, }) s.SendDiagnostic(TRACK_CONFIG_LDAP, map[string]interface{}{ diff --git a/config/client.go b/config/client.go index 4bbf023907..d50c1a7ae0 100644 --- a/config/client.go +++ b/config/client.go @@ -239,6 +239,7 @@ func GenerateLimitedClientConfig(c *model.Config, diagnosticID string, license * props["HelpLink"] = *c.SupportSettings.HelpLink props["ReportAProblemLink"] = *c.SupportSettings.ReportAProblemLink props["SupportEmail"] = *c.SupportSettings.SupportEmail + props["EnableAskCommunityLink"] = strconv.FormatBool(*c.SupportSettings.EnableAskCommunityLink) props["DefaultClientLocale"] = *c.LocalizationSettings.DefaultClientLocale diff --git a/model/config.go b/model/config.go index ce3f933a01..6254c31c69 100644 --- a/model/config.go +++ b/model/config.go @@ -1596,6 +1596,7 @@ type SupportSettings struct { SupportEmail *string CustomTermsOfServiceEnabled *bool CustomTermsOfServiceReAcceptancePeriod *int + EnableAskCommunityLink *bool } func (s *SupportSettings) SetDefaults() { @@ -1650,6 +1651,10 @@ func (s *SupportSettings) SetDefaults() { if s.CustomTermsOfServiceReAcceptancePeriod == nil { s.CustomTermsOfServiceReAcceptancePeriod = NewInt(SUPPORT_SETTINGS_DEFAULT_RE_ACCEPTANCE_PERIOD) } + + if s.EnableAskCommunityLink == nil { + s.EnableAskCommunityLink = NewBool(true) + } } type AnnouncementSettings struct {