summaryrefslogtreecommitdiffstats
path: root/model/license.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-04-11 13:45:03 -0400
committerChristopher Speller <crspeller@gmail.com>2016-04-11 13:45:03 -0400
commit49ab8b216191749bd39694d79f687a84ad24adf0 (patch)
tree27b4966d437b15ddcd8d420b8a1afc1881455c13 /model/license.go
parent5b96ad59c502d435dbca95950c4590a575b2c5b9 (diff)
downloadchat-49ab8b216191749bd39694d79f687a84ad24adf0.tar.gz
chat-49ab8b216191749bd39694d79f687a84ad24adf0.tar.bz2
chat-49ab8b216191749bd39694d79f687a84ad24adf0.zip
Add custom branding functionality (#2667)
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 {