summaryrefslogtreecommitdiffstats
path: root/model/license.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-09-15 17:53:48 +0100
committerChristopher Speller <crspeller@gmail.com>2017-09-15 09:53:48 -0700
commit7243aa6751c266ecd342a41cbef390c71a962425 (patch)
tree9402bc13b51a3394284a1c6d56247f586c158016 /model/license.go
parentfd878bd50c1c36f90962776ebb9626d016239540 (diff)
downloadchat-7243aa6751c266ecd342a41cbef390c71a962425.tar.gz
chat-7243aa6751c266ecd342a41cbef390c71a962425.tar.bz2
chat-7243aa6751c266ecd342a41cbef390c71a962425.zip
PLT-6558: Basic data retention job scheduler/worker implementation. (#7449)
* PLT-7639: Batch delete methods for data retention. * PLT-6558: Basic data retention job worker/scheduler implementation.
Diffstat (limited to 'model/license.go')
-rw-r--r--model/license.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/model/license.go b/model/license.go
index 5126f7c3e..9e25dd882 100644
--- a/model/license.go
+++ b/model/license.go
@@ -54,6 +54,7 @@ type Features struct {
Announcement *bool `json:"announcement"`
ThemeManagement *bool `json:"theme_management"`
EmailNotificationContents *bool `json:"email_notification_contents"`
+ DataRetention *bool `json:"data_retention"`
// after we enabled more features for webrtc we'll need to control them with this
FutureFeatures *bool `json:"future_features"`
@@ -74,6 +75,7 @@ func (f *Features) ToMap() map[string]interface{} {
"password": *f.PasswordRequirements,
"elastic_search": *f.Elasticsearch,
"email_notification_contents": *f.EmailNotificationContents,
+ "data_retention": *f.DataRetention,
"future": *f.FutureFeatures,
}
}
@@ -163,6 +165,11 @@ func (f *Features) SetDefaults() {
f.EmailNotificationContents = new(bool)
*f.EmailNotificationContents = *f.FutureFeatures
}
+
+ if f.DataRetention == nil {
+ f.DataRetention = new(bool)
+ *f.DataRetention = *f.FutureFeatures
+ }
}
func (l *License) IsExpired() bool {