Merge branch 'master' into MM-50966-in-product-expansion-backend

Этот коммит содержится в:
Mattermost Build
2023-03-28 20:45:40 +03:00
коммит произвёл GitHub
родитель a8a71d5dee bb939e28c9
Коммит 30921f5e52
1221 изменённых файлов: 1666 добавлений и 2648 удалений

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

@@ -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,