diff options
author | Wim <wim@42.be> | 2016-09-17 15:19:18 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-09-17 15:19:18 +0200 |
commit | 16ed2aca6a3da13ad7eae394028a5918b1a6e49f (patch) | |
tree | 45977475fc9bdda5b464e728562743d485023cf4 /vendor/github.com/mattermost/platform/model/license.go | |
parent | 0f530e7902f71c8f66b6b697a7d004e9f45bd9da (diff) | |
download | matterbridge-msglm-16ed2aca6a3da13ad7eae394028a5918b1a6e49f.tar.gz matterbridge-msglm-16ed2aca6a3da13ad7eae394028a5918b1a6e49f.tar.bz2 matterbridge-msglm-16ed2aca6a3da13ad7eae394028a5918b1a6e49f.zip |
Sync with mattermost 3.4.0
Diffstat (limited to 'vendor/github.com/mattermost/platform/model/license.go')
-rw-r--r-- | vendor/github.com/mattermost/platform/model/license.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/mattermost/platform/model/license.go b/vendor/github.com/mattermost/platform/model/license.go index 98b88fde..1fce1eeb 100644 --- a/vendor/github.com/mattermost/platform/model/license.go +++ b/vendor/github.com/mattermost/platform/model/license.go @@ -46,6 +46,22 @@ type Features struct { FutureFeatures *bool `json:"future_features"` } +func (f *Features) ToMap() map[string]interface{} { + return map[string]interface{}{ + "ldap": *f.LDAP, + "mfa": *f.MFA, + "google": *f.GoogleOAuth, + "office365": *f.Office365OAuth, + "compliance": *f.Compliance, + "cluster": *f.Cluster, + "custom_brand": *f.CustomBrand, + "mhpns": *f.MHPNS, + "saml": *f.SAML, + "password": *f.PasswordRequirements, + "future": *f.FutureFeatures, + } +} + func (f *Features) SetDefaults() { if f.FutureFeatures == nil { f.FutureFeatures = new(bool) |