MM-40222 - show gov references in license page when gov license (#19100)

Co-authored-by: Pablo Velez Vidal <pablo.velez@mattermost.com>
This commit is contained in:
Pablo Andrés Vélez Vidal
2021-12-01 18:45:33 +01:00
committed by GitHub
parent 22af6f72be
commit c96bb583e7
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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 {
+1
View File
@@ -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