Include PluginsEnabled in limited client config (#9998)
Этот коммит содержится в:
коммит произвёл
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["EnableUserTypingMessages"] = strconv.FormatBool(*c.ServiceSettings.EnableUserTypingMessages)
|
||||||
props["EnableChannelViewedMessages"] = strconv.FormatBool(*c.ServiceSettings.EnableChannelViewedMessages)
|
props["EnableChannelViewedMessages"] = strconv.FormatBool(*c.ServiceSettings.EnableChannelViewedMessages)
|
||||||
|
|
||||||
props["PluginsEnabled"] = strconv.FormatBool(*c.PluginSettings.Enable)
|
|
||||||
|
|
||||||
props["RunJobs"] = strconv.FormatBool(*c.JobSettings.RunJobs)
|
props["RunJobs"] = strconv.FormatBool(*c.JobSettings.RunJobs)
|
||||||
|
|
||||||
props["EnableEmailInvitations"] = strconv.FormatBool(*c.ServiceSettings.EnableEmailInvitations)
|
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 != ""
|
hasImageProxy := c.ServiceSettings.ImageProxyType != nil && *c.ServiceSettings.ImageProxyType != "" && c.ServiceSettings.ImageProxyURL != nil && *c.ServiceSettings.ImageProxyURL != ""
|
||||||
props["HasImageProxy"] = strconv.FormatBool(hasImageProxy)
|
props["HasImageProxy"] = strconv.FormatBool(hasImageProxy)
|
||||||
|
|
||||||
|
props["PluginsEnabled"] = strconv.FormatBool(*c.PluginSettings.Enable)
|
||||||
|
|
||||||
// Set default values for all options that require a license.
|
// Set default values for all options that require a license.
|
||||||
props["EnableCustomBrand"] = "false"
|
props["EnableCustomBrand"] = "false"
|
||||||
props["CustomBrandText"] = ""
|
props["CustomBrandText"] = ""
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user