summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-07-28 13:52:31 -0400
committerCorey Hulen <corey@hulen.com>2017-07-28 11:52:31 -0600
commit3c0f082506a68240abd1960cbd0fda22679e12c2 (patch)
tree395a1e9ecdb1eb2c6d7bf7141e3364cc043d9edd /utils
parentda6e6ca0bf3f880b60de8d809a7588dfbec3a77a (diff)
downloadchat-3c0f082506a68240abd1960cbd0fda22679e12c2.tar.gz
chat-3c0f082506a68240abd1960cbd0fda22679e12c2.tar.bz2
chat-3c0f082506a68240abd1960cbd0fda22679e12c2.zip
PLT-6924 Added config options to disable file uploads/downloads on mobile (#7049)
Diffstat (limited to 'utils')
-rw-r--r--utils/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go
index 3e5edbdcc..e008377d3 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -452,6 +452,8 @@ func getClientConfig(c *model.Config) map[string]string {
props["SupportEmail"] = *c.SupportSettings.SupportEmail
props["EnableFileAttachments"] = strconv.FormatBool(*c.FileSettings.EnableFileAttachments)
+ props["EnableMobileFileUpload"] = strconv.FormatBool(*c.FileSettings.EnableMobileUpload)
+ props["EnableMobileFileDownload"] = strconv.FormatBool(*c.FileSettings.EnableMobileDownload)
props["EnablePublicLink"] = strconv.FormatBool(c.FileSettings.EnablePublicLink)
props["WebsocketPort"] = fmt.Sprintf("%v", *c.ServiceSettings.WebsocketPort)