summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-12-12 15:47:36 -0500
committerJoram Wilander <jwawilander@gmail.com>2015-12-12 15:47:36 -0500
commitb9a4966e7d287ddaa16ccd7d553e2ada13edc289 (patch)
tree5155b0e1e0e049507e25fdd545b77a013124c57e /utils
parentce03fbc6d8176b6d5a903312241a948f59785a04 (diff)
parent87d7db3438d46dcd7d84a65739287e25bbb3644f (diff)
downloadchat-b9a4966e7d287ddaa16ccd7d553e2ada13edc289.tar.gz
chat-b9a4966e7d287ddaa16ccd7d553e2ada13edc289.tar.bz2
chat-b9a4966e7d287ddaa16ccd7d553e2ada13edc289.zip
Merge pull request #1588 from rgarmsen2295/plt-881
PLT-881 Adds Legal and Support Settings to the System Console
Diffstat (limited to 'utils')
-rw-r--r--utils/config.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go
index 4c8e0b5a1..0789c101d 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -205,6 +205,13 @@ func getClientConfig(c *model.Config) map[string]string {
props["ShowEmailAddress"] = strconv.FormatBool(c.PrivacySettings.ShowEmailAddress)
+ props["TermsOfServiceLink"] = *c.SupportSettings.TermsOfServiceLink
+ props["PrivacyPolicyLink"] = *c.SupportSettings.PrivacyPolicyLink
+ props["AboutLink"] = *c.SupportSettings.AboutLink
+ props["HelpLink"] = *c.SupportSettings.HelpLink
+ props["ReportAProblemLink"] = *c.SupportSettings.ReportAProblemLink
+ props["SupportEmail"] = *c.SupportSettings.SupportEmail
+
props["EnablePublicLink"] = strconv.FormatBool(c.FileSettings.EnablePublicLink)
props["ProfileHeight"] = fmt.Sprintf("%v", c.FileSettings.ProfileHeight)
props["ProfileWidth"] = fmt.Sprintf("%v", c.FileSettings.ProfileWidth)