diff options
author | Wim <wim@42.be> | 2016-05-15 23:02:30 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-05-15 23:02:30 +0200 |
commit | 59e6abcc11ed3a3548ffb02d1e455485672d8308 (patch) | |
tree | a5086741b8595d7eb33a0f41e7c109d064be33ef /vendor/github.com/mattermost/platform/model/license.go | |
parent | 38e3bbe5c96eb84f3e223c44f801ee7e3308b2c1 (diff) | |
download | matterbridge-msglm-59e6abcc11ed3a3548ffb02d1e455485672d8308.tar.gz matterbridge-msglm-59e6abcc11ed3a3548ffb02d1e455485672d8308.tar.bz2 matterbridge-msglm-59e6abcc11ed3a3548ffb02d1e455485672d8308.zip |
Sync with mattermost 3.0
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 |