MM-26620 Add a config setting for controlling ask community link (#14985)
* MM-26620 Add a config setting for controlling ask community link * Update setting * Change to support setting
Этот коммит содержится в:
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user