From c9257b858eeb635cdf915e53b2fba580ad5a0398 Mon Sep 17 00:00:00 2001 From: Eli Yukelzon Date: Tue, 13 Oct 2020 16:42:21 +0300 Subject: [PATCH] MM-29560 Correct Cloud detection in InProduct Notices (#15938) Co-authored-by: Mattermod --- app/product_notices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/product_notices.go b/app/product_notices.go index cd26d8cce0..eaa437ace2 100644 --- a/app/product_notices.go +++ b/app/product_notices.go @@ -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)