[MM-1915] Add Deactivate Account - server side (#8699)

Этот коммит содержится в:
Carlos Tadeu Panato Junior
2018-05-28 16:20:08 +02:00
коммит произвёл GitHub
родитель b6d5cc4f69
Коммит c3e9c41440
8 изменённых файлов: 118 добавлений и 1 удалений

Просмотреть файл

@@ -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)
}