diff options
author | David Lu <david.lu@hotmail.com> | 2016-08-02 08:34:34 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-08-02 08:34:34 -0400 |
commit | 2c23a4fe4907f826013571afdae6db52895f576e (patch) | |
tree | c485d6685570daed65bf956574ee1be9006152bd /model | |
parent | 42e74b509dc8a1be7798c030b1ad80f6c2755a73 (diff) | |
download | chat-2c23a4fe4907f826013571afdae6db52895f576e.tar.gz chat-2c23a4fe4907f826013571afdae6db52895f576e.tar.bz2 chat-2c23a4fe4907f826013571afdae6db52895f576e.zip |
Added custom branding to login description (#3710)
Diffstat (limited to 'model')
-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 4b00e835d..79e01dbdd 100644 --- a/model/config.go +++ b/model/config.go @@ -192,6 +192,7 @@ type TeamSettings struct { RestrictTeamNames *bool EnableCustomBrand *bool CustomBrandText *string + CustomDescriptionText *string RestrictDirectMessage *string RestrictTeamInvite *string RestrictPublicChannelManagement *string @@ -422,6 +423,11 @@ func (o *Config) SetDefaults() { *o.TeamSettings.CustomBrandText = "" } + if o.TeamSettings.CustomDescriptionText == nil { + o.TeamSettings.CustomDescriptionText = new(string) + *o.TeamSettings.CustomDescriptionText = "" + } + if o.TeamSettings.EnableOpenServer == nil { o.TeamSettings.EnableOpenServer = new(bool) *o.TeamSettings.EnableOpenServer = false |