PLT-6924 Added config options to disable file uploads/downloads on mobile (#7049)

Этот коммит содержится в:
Harrison Healey
2017-07-28 13:52:31 -04:00
коммит произвёл Corey Hulen
родитель da6e6ca0bf
Коммит 3c0f082506
5 изменённых файлов: 77 добавлений и 14 удалений

Просмотреть файл

@@ -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)