summaryrefslogtreecommitdiffstats
path: root/model/license.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/license.go')
-rw-r--r--model/license.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/model/license.go b/model/license.go
index 1fce1eeb1..465cca128 100644
--- a/model/license.go
+++ b/model/license.go
@@ -43,7 +43,9 @@ type Features struct {
MHPNS *bool `json:"mhpns"`
SAML *bool `json:"saml"`
PasswordRequirements *bool `json:"password_requirements"`
- FutureFeatures *bool `json:"future_features"`
+ // after we enabled more features for web rtc we'll need to control them with this
+ Webrtc *bool `json:"webrtc"`
+ FutureFeatures *bool `json:"future_features"`
}
func (f *Features) ToMap() map[string]interface{} {
@@ -122,6 +124,11 @@ func (f *Features) SetDefaults() {
f.PasswordRequirements = new(bool)
*f.PasswordRequirements = *f.FutureFeatures
}
+
+ if f.Webrtc == nil {
+ f.Webrtc = new(bool)
+ *f.Webrtc = *f.FutureFeatures
+ }
}
func (l *License) IsExpired() bool {