From 3c0f082506a68240abd1960cbd0fda22679e12c2 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 28 Jul 2017 13:52:31 -0400 Subject: PLT-6924 Added config options to disable file uploads/downloads on mobile (#7049) --- utils/config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils') 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) -- cgit v1.2.3-1-g7c22