diff options
author | MichaĆ Odziemczyk <koxen@users.noreply.github.com> | 2018-03-13 18:21:02 +0100 |
---|---|---|
committer | Derrick Anderson <derrick@andersonwebstudio.com> | 2018-03-13 13:21:02 -0400 |
commit | 88b9d2225dd68fe70881d3d6d066d56875f88c7d (patch) | |
tree | b14c39f787bcaa81bd1fcbac4a42a08eaac8063d /utils | |
parent | 2b460da1d54944c5c16ef15e966843b00f06aa63 (diff) | |
download | chat-88b9d2225dd68fe70881d3d6d066d56875f88c7d.tar.gz chat-88b9d2225dd68fe70881d3d6d066d56875f88c7d.tar.bz2 chat-88b9d2225dd68fe70881d3d6d066d56875f88c7d.zip |
MM-9795: Fix theme chooser for non-EE builds (#8440)
* Fix theme chooser for non-EE builds
* fix compilation
* remove whitespace
* fix
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 679e5f62c..c4d3d0d96 100644 --- a/utils/config.go +++ b/utils/config.go @@ -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) |