diff options
author | Chris <ccbrown112@gmail.com> | 2018-02-09 13:56:11 -0600 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2018-02-09 11:56:11 -0800 |
commit | 0daac7e4fc05ecb64dbc162daff618569bb249cd (patch) | |
tree | cf2a5145c750aa1781d317681f2a1d3e28249739 /utils | |
parent | e7b084842a4d371ac3ac1feab952d19524e607d3 (diff) | |
download | chat-0daac7e4fc05ecb64dbc162daff618569bb249cd.tar.gz chat-0daac7e4fc05ecb64dbc162daff618569bb249cd.tar.bz2 chat-0daac7e4fc05ecb64dbc162daff618569bb249cd.zip |
Add /v4/image api (#8230)
* add image api
* i suppose i should add a test...
* only redirect to image proxy
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 0669d63e4..a855733a7 100644 --- a/utils/config.go +++ b/utils/config.go @@ -456,6 +456,9 @@ func GenerateClientConfig(c *model.Config, diagnosticId string, license *model.L props["PluginsEnabled"] = strconv.FormatBool(*c.PluginSettings.Enable) + hasImageProxy := c.ServiceSettings.ImageProxyType != nil && *c.ServiceSettings.ImageProxyType != "" && c.ServiceSettings.ImageProxyURL != nil && *c.ServiceSettings.ImageProxyURL != "" + props["HasImageProxy"] = strconv.FormatBool(hasImageProxy) + if license != nil { props["ExperimentalTownSquareIsReadOnly"] = strconv.FormatBool(*c.TeamSettings.ExperimentalTownSquareIsReadOnly) props["ExperimentalEnableAuthenticationTransfer"] = strconv.FormatBool(*c.ServiceSettings.ExperimentalEnableAuthenticationTransfer) |