[MM-41981] Always install the latest compatible version via the Marketplace (#19613)

Этот коммит содержится в:
Ben Schumacher
2022-03-03 22:53:01 +01:00
коммит произвёл GitHub
родитель 72f937f96b
Коммит 275adc8c30
4 изменённых файлов: 87 добавлений и 18 удалений

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

@@ -151,6 +151,10 @@ func installMarketplacePlugin(c *Context, w http.ResponseWriter, r *http.Request
}
auditRec.AddMeta("plugin_id", pluginRequest.Id)
// Always install the latest compatible version
// https://mattermost.atlassian.net/browse/MM-41981
pluginRequest.Version = ""
manifest, appErr := c.App.Channels().InstallMarketplacePlugin(pluginRequest)
if appErr != nil {
c.Err = appErr