summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-05-28 16:20:08 +0200
committerGitHub <noreply@github.com>2018-05-28 16:20:08 +0200
commitc3e9c414408a8c9c2806af12e659e395c605496f (patch)
tree26510a3576d891c01e1bd4a7595f24f50332ee21 /model/config.go
parentb6d5cc4f696b7438317948710efb860e11c0a1a9 (diff)
downloadchat-c3e9c414408a8c9c2806af12e659e395c605496f.tar.gz
chat-c3e9c414408a8c9c2806af12e659e395c605496f.tar.bz2
chat-c3e9c414408a8c9c2806af12e659e395c605496f.zip
[MM-1915] Add Deactivate Account - server side (#8699)
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 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)
}