summaryrefslogtreecommitdiffstats
path: root/model/license.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/license.go')
-rw-r--r--model/license.go16
1 files changed, 11 insertions, 5 deletions
diff --git a/model/license.go b/model/license.go
index cab22a685..0cea67c3d 100644
--- a/model/license.go
+++ b/model/license.go
@@ -32,11 +32,12 @@ 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"`
+ 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"`
}
func (f *Features) SetDefaults() {
@@ -64,6 +65,11 @@ func (f *Features) SetDefaults() {
f.Compliance = new(bool)
*f.Compliance = true
}
+
+ if f.CustomBrand == nil {
+ f.CustomBrand = new(bool)
+ *f.CustomBrand = true
+ }
}
func (l *License) IsExpired() bool {