diff options
author | Martin Kraft <mkraft@users.noreply.github.com> | 2018-05-22 14:15:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 14:15:54 -0400 |
commit | f40666f9e8ee9aef5f7e9739f0fa8857bfbc76ab (patch) | |
tree | 85d274cb7ecca9ea6e8e595b15aa631c54acf1ea /model/config.go | |
parent | 4c683aff7627040ff811f065848a820b2cb19d59 (diff) | |
parent | ce378adc97399dcae9e1c9621c584669b813b2d2 (diff) | |
download | chat-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.go | 5 |
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 { |