MM-9795: Fix theme chooser for non-EE builds (#8440)

* Fix theme chooser for non-EE builds

* fix compilation

* remove whitespace

* fix
Этот коммит содержится в:
Michał Odziemczyk
2018-03-13 18:21:02 +01:00
коммит произвёл Derrick Anderson
родитель 2b460da1d5
Коммит 88b9d2225d

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

@@ -452,6 +452,9 @@ func GenerateClientConfig(c *model.Config, diagnosticId string, license *model.L
hasImageProxy := c.ServiceSettings.ImageProxyType != nil && *c.ServiceSettings.ImageProxyType != "" && c.ServiceSettings.ImageProxyURL != nil && *c.ServiceSettings.ImageProxyURL != ""
props["HasImageProxy"] = strconv.FormatBool(hasImageProxy)
props["EnableThemeSelection"] = "true"
props["AllowCustomThemes"] = "true"
if license != nil {
props["ExperimentalTownSquareIsReadOnly"] = strconv.FormatBool(*c.TeamSettings.ExperimentalTownSquareIsReadOnly)
props["ExperimentalEnableAuthenticationTransfer"] = strconv.FormatBool(*c.ServiceSettings.ExperimentalEnableAuthenticationTransfer)