diff options
author | Asaad Mahmood <asaad@spinpunch.com> | 2015-12-14 19:04:08 +0500 |
---|---|---|
committer | Asaad Mahmood <asaad@spinpunch.com> | 2015-12-14 19:04:08 +0500 |
commit | 3d8d152aa0d84d1150ee0a174641c0a4697307f1 (patch) | |
tree | bdcdc81111fd7c8f2b3dd912402006b2d66b50cf /model | |
parent | def79636f8e41204c32bf4b628b254aec5377ef5 (diff) | |
parent | b9a4966e7d287ddaa16ccd7d553e2ada13edc289 (diff) | |
download | chat-3d8d152aa0d84d1150ee0a174641c0a4697307f1.tar.gz chat-3d8d152aa0d84d1150ee0a174641c0a4697307f1.tar.bz2 chat-3d8d152aa0d84d1150ee0a174641c0a4697307f1.zip |
Merge branch 'master' of https://github.com/mattermost/platform into code-themes
Diffstat (limited to 'model')
-rw-r--r-- | model/config.go | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index a3ba812b0..9030f91ae 100644 --- a/model/config.go +++ b/model/config.go @@ -113,6 +113,15 @@ type PrivacySettings struct { ShowFullName bool } +type SupportSettings struct { + TermsOfServiceLink *string + PrivacyPolicyLink *string + AboutLink *string + HelpLink *string + ReportAProblemLink *string + SupportEmail *string +} + type TeamSettings struct { SiteName string MaxUsersPerTeam int @@ -132,6 +141,7 @@ type Config struct { EmailSettings EmailSettings RateLimitSettings RateLimitSettings PrivacySettings PrivacySettings + SupportSettings SupportSettings GitLabSettings SSOSettings } @@ -206,6 +216,35 @@ func (o *Config) SetDefaults() { *o.EmailSettings.PushNotificationServer = "" } + if o.SupportSettings.TermsOfServiceLink == nil { + o.SupportSettings.TermsOfServiceLink = new(string) + *o.SupportSettings.TermsOfServiceLink = "/static/help/terms.html" + } + + if o.SupportSettings.PrivacyPolicyLink == nil { + o.SupportSettings.PrivacyPolicyLink = new(string) + *o.SupportSettings.PrivacyPolicyLink = "/static/help/privacy.html" + } + + if o.SupportSettings.AboutLink == nil { + o.SupportSettings.AboutLink = new(string) + *o.SupportSettings.AboutLink = "/static/help/about.html" + } + + if o.SupportSettings.HelpLink == nil { + o.SupportSettings.HelpLink = new(string) + *o.SupportSettings.HelpLink = "/static/help/help.html" + } + + if o.SupportSettings.ReportAProblemLink == nil { + o.SupportSettings.ReportAProblemLink = new(string) + *o.SupportSettings.ReportAProblemLink = "/static/help/report_problem.html" + } + + if o.SupportSettings.SupportEmail == nil { + o.SupportSettings.SupportEmail = new(string) + *o.SupportSettings.SupportEmail = "feedback@mattermost.com" + } } func (o *Config) IsValid() *AppError { |