diff options
Diffstat (limited to 'vendor/github.com/mattermost/platform/model/license.go')
-rw-r--r-- | vendor/github.com/mattermost/platform/model/license.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/github.com/mattermost/platform/model/license.go b/vendor/github.com/mattermost/platform/model/license.go index abb1be09..bc72ff9a 100644 --- a/vendor/github.com/mattermost/platform/model/license.go +++ b/vendor/github.com/mattermost/platform/model/license.go @@ -34,7 +34,10 @@ type Customer struct { type Features struct { Users *int `json:"users"` LDAP *bool `json:"ldap"` + MFA *bool `json:"mfa"` GoogleSSO *bool `json:"google_sso"` + Compliance *bool `json:"compliance"` + CustomBrand *bool `json:"custom_brand"` MHPNS *bool `json:"mhpns"` FutureFeatures *bool `json:"future_features"` } @@ -55,11 +58,26 @@ func (f *Features) SetDefaults() { *f.LDAP = *f.FutureFeatures } + if f.MFA == nil { + f.MFA = new(bool) + *f.MFA = *f.FutureFeatures + } + if f.GoogleSSO == nil { f.GoogleSSO = new(bool) *f.GoogleSSO = *f.FutureFeatures } + if f.Compliance == nil { + f.Compliance = new(bool) + *f.Compliance = *f.FutureFeatures + } + + if f.CustomBrand == nil { + f.CustomBrand = new(bool) + *f.CustomBrand = *f.FutureFeatures + } + if f.MHPNS == nil { f.MHPNS = new(bool) *f.MHPNS = *f.FutureFeatures |