summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-08-25 10:24:52 -0400
committerGitHub <noreply@github.com>2017-08-25 10:24:52 -0400
commit086365fb84e1d8096993756b79558bc204b1df2e (patch)
tree566396508513df8b09de521a533d0331fd18efbd /model
parenta360ac6dbdf3d2487d12bc4435624a5227aeb845 (diff)
downloadchat-086365fb84e1d8096993756b79558bc204b1df2e.tar.gz
chat-086365fb84e1d8096993756b79558bc204b1df2e.tar.bz2
chat-086365fb84e1d8096993756b79558bc204b1df2e.zip
PLT-7417/PLT-7425 (#7278)
PLT-7417/PLT-7425 Update config.json defaults and removed admin console link settings
Diffstat (limited to 'model')
-rw-r--r--model/config.go42
1 files changed, 6 insertions, 36 deletions
diff --git a/model/config.go b/model/config.go
index 9906723e7..b3365a49a 100644
--- a/model/config.go
+++ b/model/config.go
@@ -310,15 +310,12 @@ type PrivacySettings struct {
}
type SupportSettings struct {
- TermsOfServiceLink *string
- PrivacyPolicyLink *string
- AboutLink *string
- HelpLink *string
- ReportAProblemLink *string
- AdministratorsGuideLink *string
- TroubleshootingForumLink *string
- CommercialSupportLink *string
- SupportEmail *string
+ TermsOfServiceLink *string
+ PrivacyPolicyLink *string
+ AboutLink *string
+ HelpLink *string
+ ReportAProblemLink *string
+ SupportEmail *string
}
type AnnouncementSettings struct {
@@ -889,33 +886,6 @@ func (o *Config) SetDefaults() {
*o.SupportSettings.ReportAProblemLink = SUPPORT_SETTINGS_DEFAULT_REPORT_A_PROBLEM_LINK
}
- if !IsSafeLink(o.SupportSettings.AdministratorsGuideLink) {
- *o.SupportSettings.AdministratorsGuideLink = ""
- }
-
- if o.SupportSettings.AdministratorsGuideLink == nil {
- o.SupportSettings.AdministratorsGuideLink = new(string)
- *o.SupportSettings.AdministratorsGuideLink = SUPPORT_SETTINGS_DEFAULT_ADMINISTRATORS_GUIDE_LINK
- }
-
- if !IsSafeLink(o.SupportSettings.TroubleshootingForumLink) {
- *o.SupportSettings.TroubleshootingForumLink = ""
- }
-
- if o.SupportSettings.TroubleshootingForumLink == nil {
- o.SupportSettings.TroubleshootingForumLink = new(string)
- *o.SupportSettings.TroubleshootingForumLink = SUPPORT_SETTINGS_DEFAULT_TROUBLESHOOTING_FORUM_LINK
- }
-
- if !IsSafeLink(o.SupportSettings.CommercialSupportLink) {
- *o.SupportSettings.CommercialSupportLink = ""
- }
-
- if o.SupportSettings.CommercialSupportLink == nil {
- o.SupportSettings.CommercialSupportLink = new(string)
- *o.SupportSettings.CommercialSupportLink = SUPPORT_SETTINGS_DEFAULT_COMMERCIAL_SUPPORT_LINK
- }
-
if o.SupportSettings.SupportEmail == nil {
o.SupportSettings.SupportEmail = new(string)
*o.SupportSettings.SupportEmail = SUPPORT_SETTINGS_DEFAULT_SUPPORT_EMAIL