Change status code to 400 when attempting to enable Boards plugin with product enabled (#21521)

Этот коммит содержится в:
Harrison Healey
2022-10-26 18:15:19 -04:00
коммит произвёл GitHub
родитель 96c8dc1281
Коммит b316e1384e
2 изменённых файлов: 2 добавлений и 2 удалений

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

@@ -157,7 +157,7 @@ func updateConfig(c *Context, w http.ResponseWriter, r *http.Request) {
}
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)
c.Err = model.NewAppError("EnablePlugin", "app.plugin.product_mode.app_error", map[string]any{"Name": model.PluginIdFocalboard}, "", http.StatusBadRequest)
return
}