diff options
author | =Corey Hulen <corey@hulen.com> | 2015-12-14 11:34:16 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-12-14 11:34:16 -0800 |
commit | c7c03817d05c05d5bc3f1a59ee0b06a47048ff4b (patch) | |
tree | e66774920eedebe63d7afe072a85e5012e265d0d /model/config.go | |
parent | f5ec973cba4c224de5ba75b56aad447f715b9d6b (diff) | |
download | chat-c7c03817d05c05d5bc3f1a59ee0b06a47048ff4b.tar.gz chat-c7c03817d05c05d5bc3f1a59ee0b06a47048ff4b.tar.bz2 chat-c7c03817d05c05d5bc3f1a59ee0b06a47048ff4b.zip |
Adding error bar message when console error detected
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index 9030f91ae..06cb9829e 100644 --- a/model/config.go +++ b/model/config.go @@ -33,6 +33,7 @@ type ServiceSettings struct { EnablePostUsernameOverride bool EnablePostIconOverride bool EnableTesting bool + EnableDeveloper *bool EnableSecurityFixAlert *bool } @@ -191,6 +192,11 @@ func (o *Config) SetDefaults() { o.EmailSettings.PasswordResetSalt = NewRandomString(32) } + if o.ServiceSettings.EnableDeveloper == nil { + o.ServiceSettings.EnableDeveloper = new(bool) + *o.ServiceSettings.EnableDeveloper = false + } + if o.ServiceSettings.EnableSecurityFixAlert == nil { o.ServiceSettings.EnableSecurityFixAlert = new(bool) *o.ServiceSettings.EnableSecurityFixAlert = true |