From c96bb583e779e1cc7752a3a627f9c3b281de9ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20V=C3=A9lez=20Vidal?= Date: Wed, 1 Dec 2021 18:45:33 +0100 Subject: [PATCH] MM-40222 - show gov references in license page when gov license (#19100) Co-authored-by: Pablo Velez Vidal --- model/license.go | 1 + utils/license.go | 1 + 2 files changed, 2 insertions(+) diff --git a/model/license.go b/model/license.go index d83a61f901..dbdc296e4f 100644 --- a/model/license.go +++ b/model/license.go @@ -52,6 +52,7 @@ type License struct { SkuName string `json:"sku_name"` SkuShortName string `json:"sku_short_name"` IsTrial bool `json:"is_trial"` + IsGovSku bool `json:"is_gov_sku"` } type Customer struct { diff --git a/utils/license.go b/utils/license.go index 83d92375ea..96a228ba8e 100644 --- a/utils/license.go +++ b/utils/license.go @@ -200,6 +200,7 @@ func GetClientLicense(l *model.License) map[string]string { props["SharedChannels"] = strconv.FormatBool(*l.Features.SharedChannels) props["RemoteClusterService"] = strconv.FormatBool(*l.Features.RemoteClusterService) props["IsTrial"] = strconv.FormatBool(l.IsTrial) + props["IsGovSku"] = strconv.FormatBool(l.IsGovSku) } return props