diff --git a/app/product_notices.go b/app/product_notices.go index 7e91cc4628..0d03397f81 100644 --- a/app/product_notices.go +++ b/app/product_notices.go @@ -95,7 +95,7 @@ func noticeMatchesConditions(config *model.Config, preferences store.PreferenceS } // check if current server version is notice range - if cnd.ServerVersion != nil { + if !isCloud && cnd.ServerVersion != nil { version := cleanupVersion(model.BuildNumber) serverVersion, err := semver.NewVersion(version) if err != nil { diff --git a/app/product_notices_test.go b/app/product_notices_test.go index 3fa34c0071..ca8d98d440 100644 --- a/app/product_notices_test.go +++ b/app/product_notices_test.go @@ -283,6 +283,20 @@ func TestNoticeValidation(t *testing.T) { wantErr: false, wantOk: false, }, + { + name: "notice with server version check on cloud should ignore version", + args: args{ + cloud: true, + serverVersion: "cloud.54.abcdef", + notice: &model.ProductNotice{ + Conditions: model.Conditions{ + ServerVersion: []string{"> 99.0.0 < 100.2.2"}, + }, + }, + }, + wantErr: false, + wantOk: true, + }, { name: "notice with server version check that is invalid",