summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorMartin Kraft <mkraft@users.noreply.github.com>2018-05-22 14:15:54 -0400
committerGitHub <noreply@github.com>2018-05-22 14:15:54 -0400
commitf40666f9e8ee9aef5f7e9739f0fa8857bfbc76ab (patch)
tree85d274cb7ecca9ea6e8e595b15aa631c54acf1ea /model/config.go
parent4c683aff7627040ff811f065848a820b2cb19d59 (diff)
parentce378adc97399dcae9e1c9621c584669b813b2d2 (diff)
downloadchat-f40666f9e8ee9aef5f7e9739f0fa8857bfbc76ab.tar.gz
chat-f40666f9e8ee9aef5f7e9739f0fa8857bfbc76ab.tar.bz2
chat-f40666f9e8ee9aef5f7e9739f0fa8857bfbc76ab.zip
Merge branch 'master' into advanced-permissions-phase-2
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 4710658ec..7a2125061 100644
--- a/model/config.go
+++ b/model/config.go
@@ -739,6 +739,7 @@ type EmailSettings struct {
EnableEmailBatching *bool
EmailBatchingBufferSize *int
EmailBatchingInterval *int
+ EnablePreviewModeBanner *bool
SkipServerCertificateVerification *bool
EmailNotificationContentsType *string
LoginButtonColor *string
@@ -791,6 +792,10 @@ func (s *EmailSettings) SetDefaults() {
s.EmailBatchingInterval = NewInt(EMAIL_BATCHING_INTERVAL)
}
+ if s.EnablePreviewModeBanner == nil {
+ s.EnablePreviewModeBanner = NewBool(true)
+ }
+
if s.EnableSMTPAuth == nil {
s.EnableSMTPAuth = new(bool)
if s.ConnectionSecurity == CONN_SECURITY_NONE {