diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2018-05-28 16:20:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 16:20:08 +0200 |
commit | c3e9c414408a8c9c2806af12e659e395c605496f (patch) | |
tree | 26510a3576d891c01e1bd4a7595f24f50332ee21 /model | |
parent | b6d5cc4f696b7438317948710efb860e11c0a1a9 (diff) | |
download | chat-c3e9c414408a8c9c2806af12e659e395c605496f.tar.gz chat-c3e9c414408a8c9c2806af12e659e395c605496f.tar.bz2 chat-c3e9c414408a8c9c2806af12e659e395c605496f.zip |
[MM-1915] Add Deactivate Account - server side (#8699)
Diffstat (limited to 'model')
-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 deaae6db8..ba3a02d33 100644 --- a/model/config.go +++ b/model/config.go @@ -1002,6 +1002,7 @@ type TeamSettings struct { EnableTeamCreation *bool EnableUserCreation *bool EnableOpenServer *bool + EnableUserDeactivation *bool RestrictCreationToDomains string EnableCustomBrand *bool CustomBrandText *string @@ -1036,6 +1037,10 @@ func (s *TeamSettings) SetDefaults() { s.EnableCustomBrand = NewBool(false) } + if s.EnableUserDeactivation == nil { + s.EnableUserDeactivation = NewBool(false) + } + if s.CustomBrandText == nil { s.CustomBrandText = NewString(TEAM_SETTINGS_DEFAULT_CUSTOM_BRAND_TEXT) } |