mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-6260: Allow empty legal/support links. (#6057)
This commit is contained in:
committed by
Harrison Healey
parent
787dfc9220
commit
9fa4712dd7
@@ -698,7 +698,7 @@ func (o *Config) SetDefaults() {
|
||||
}
|
||||
|
||||
if !IsSafeLink(o.SupportSettings.TermsOfServiceLink) {
|
||||
o.SupportSettings.TermsOfServiceLink = nil
|
||||
*o.SupportSettings.TermsOfServiceLink = ""
|
||||
}
|
||||
|
||||
if o.SupportSettings.TermsOfServiceLink == nil {
|
||||
@@ -707,7 +707,7 @@ func (o *Config) SetDefaults() {
|
||||
}
|
||||
|
||||
if !IsSafeLink(o.SupportSettings.PrivacyPolicyLink) {
|
||||
o.SupportSettings.PrivacyPolicyLink = nil
|
||||
*o.SupportSettings.PrivacyPolicyLink = ""
|
||||
}
|
||||
|
||||
if o.SupportSettings.PrivacyPolicyLink == nil {
|
||||
@@ -716,7 +716,7 @@ func (o *Config) SetDefaults() {
|
||||
}
|
||||
|
||||
if !IsSafeLink(o.SupportSettings.AboutLink) {
|
||||
o.SupportSettings.AboutLink = nil
|
||||
*o.SupportSettings.AboutLink = ""
|
||||
}
|
||||
|
||||
if o.SupportSettings.AboutLink == nil {
|
||||
@@ -725,7 +725,7 @@ func (o *Config) SetDefaults() {
|
||||
}
|
||||
|
||||
if !IsSafeLink(o.SupportSettings.HelpLink) {
|
||||
o.SupportSettings.HelpLink = nil
|
||||
*o.SupportSettings.HelpLink = ""
|
||||
}
|
||||
|
||||
if o.SupportSettings.HelpLink == nil {
|
||||
@@ -734,7 +734,7 @@ func (o *Config) SetDefaults() {
|
||||
}
|
||||
|
||||
if !IsSafeLink(o.SupportSettings.ReportAProblemLink) {
|
||||
o.SupportSettings.ReportAProblemLink = nil
|
||||
*o.SupportSettings.ReportAProblemLink = ""
|
||||
}
|
||||
|
||||
if o.SupportSettings.ReportAProblemLink == nil {
|
||||
|
||||
Reference in New Issue
Block a user