MM-29560 Correct Cloud detection in InProduct Notices (#15938)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Eli Yukelzon
2020-10-13 16:42:21 +03:00
коммит произвёл GitHub
родитель 5b16ac7f13
Коммит c9257b858e

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

@@ -221,7 +221,7 @@ func (a *App) GetProductNotices(userId, teamId string, client model.NoticeClient
}
sku := a.Srv().ClientLicense()["SkuShortName"]
isCloud := a.Srv().ClientLicense()["Cloud"] != ""
isCloud := a.Srv().License() != nil && *a.Srv().License().Features.Cloud
filteredNotices := make([]model.NoticeMessage, 0)