Remove configuration auto enable. (#22625)

* Remove configuration auto enable.

* i18n

* Fix diff tests.
Этот коммит содержится в:
Christopher Speller
2023-03-27 14:02:18 -07:00
коммит произвёл GitHub
родитель 0140e94d77
Коммит ae6416e357
4 изменённых файлов: 0 добавлений и 37 удалений

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

@@ -157,11 +157,6 @@ func updateConfig(c *Context, w http.ResponseWriter, r *http.Request) {
*cfg.PluginSettings.MarketplaceURL = *appCfg.PluginSettings.MarketplaceURL
}
if cfg.PluginSettings.PluginStates[model.PluginIdFocalboard].Enable && cfg.FeatureFlags.BoardsProduct {
c.Err = model.NewAppError("EnablePlugin", "app.plugin.product_mode.app_error", map[string]any{"Name": model.PluginIdFocalboard}, "", http.StatusInternalServerError)
return
}
// There are some settings that cannot be changed in a cloud env
if c.App.Channels().License().IsCloud() {
// Both of them cannot be nil since cfg.SetDefaults is called earlier for cfg,