summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-06-05 02:35:39 -0400
committerenahum <nahumhbl@gmail.com>2016-06-05 03:35:39 -0300
commit2965a00e9b9afd83227bd5bcb08d6e76d5f7c3aa (patch)
treeb3b10f13f746d78760030bc832d44dd4a6c48e8c /utils
parent96373a0cc72f29a65f1c0d987ea05c634124f41f (diff)
downloadchat-2965a00e9b9afd83227bd5bcb08d6e76d5f7c3aa.tar.gz
chat-2965a00e9b9afd83227bd5bcb08d6e76d5f7c3aa.tar.bz2
chat-2965a00e9b9afd83227bd5bcb08d6e76d5f7c3aa.zip
PLT-3168 Hide EnableFormatting advanced setting unless testing is enabled (#3237)
* Added EnableTesting to the client config * Hid EnableFormatting advanced setting unless testing is enabled
Diffstat (limited to 'utils')
-rw-r--r--utils/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go
index a3969fc40..86fe7c062 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -217,6 +217,7 @@ func getClientConfig(c *model.Config) map[string]string {
props["EnableOnlyAdminIntegrations"] = strconv.FormatBool(*c.ServiceSettings.EnableOnlyAdminIntegrations)
props["EnablePostUsernameOverride"] = strconv.FormatBool(c.ServiceSettings.EnablePostUsernameOverride)
props["EnablePostIconOverride"] = strconv.FormatBool(c.ServiceSettings.EnablePostIconOverride)
+ props["EnableTesting"] = strconv.FormatBool(c.ServiceSettings.EnableTesting)
props["EnableDeveloper"] = strconv.FormatBool(*c.ServiceSettings.EnableDeveloper)
props["SendEmailNotifications"] = strconv.FormatBool(c.EmailSettings.SendEmailNotifications)