Include PluginsEnabled in limited client config (#9998)

Этот коммит содержится в:
Joram Wilander
2018-12-14 06:13:21 -05:00
коммит произвёл Carlos Tadeu Panato Junior
родитель 594f15051d
Коммит c06e42b24a

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

@@ -581,8 +581,6 @@ func GenerateClientConfig(c *model.Config, diagnosticId string, license *model.L
props["EnableUserTypingMessages"] = strconv.FormatBool(*c.ServiceSettings.EnableUserTypingMessages)
props["EnableChannelViewedMessages"] = strconv.FormatBool(*c.ServiceSettings.EnableChannelViewedMessages)
props["PluginsEnabled"] = strconv.FormatBool(*c.PluginSettings.Enable)
props["RunJobs"] = strconv.FormatBool(*c.JobSettings.RunJobs)
props["EnableEmailInvitations"] = strconv.FormatBool(*c.ServiceSettings.EnableEmailInvitations)
@@ -746,6 +744,8 @@ func GenerateLimitedClientConfig(c *model.Config, diagnosticId string, license *
hasImageProxy := c.ServiceSettings.ImageProxyType != nil && *c.ServiceSettings.ImageProxyType != "" && c.ServiceSettings.ImageProxyURL != nil && *c.ServiceSettings.ImageProxyURL != ""
props["HasImageProxy"] = strconv.FormatBool(hasImageProxy)
props["PluginsEnabled"] = strconv.FormatBool(*c.PluginSettings.Enable)
// Set default values for all options that require a license.
props["EnableCustomBrand"] = "false"
props["CustomBrandText"] = ""