summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-12-01 11:04:24 -0800
committerReed Garmsen <rgarmsen2295@gmail.com>2015-12-10 09:38:19 -0800
commit87d7db3438d46dcd7d84a65739287e25bbb3644f (patch)
treeb467f8f8af70c43eb59d9bf0dae86f439de638c1 /model
parentc6bd44f14a2ae5b63b25cff0b972ba75af6c1bbc (diff)
downloadchat-87d7db3438d46dcd7d84a65739287e25bbb3644f.tar.gz
chat-87d7db3438d46dcd7d84a65739287e25bbb3644f.tar.bz2
chat-87d7db3438d46dcd7d84a65739287e25bbb3644f.zip
Added legal and support settings to sys console and implemented support for options in app
Diffstat (limited to 'model')
-rw-r--r--model/config.go39
1 files changed, 39 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 195cefae8..b6aa88919 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
}
@@ -189,6 +199,35 @@ func (o *Config) SetDefaults() {
*o.EmailSettings.PushNotificationServer = "https://push.mattermost.com"
}
+ 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 {