Этот коммит содержится в:
=Corey Hulen
2015-10-27 22:18:52 -07:00
родитель 940f5c29c7
Коммит bb25056d9a
28 изменённых файлов: 759 добавлений и 141 удалений

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

@@ -123,6 +123,7 @@ type TeamSettings struct {
EnableUserCreation bool
RestrictCreationToDomains string
RestrictTeamNames *bool
EnableTeamListing *bool
}
type Config struct {
@@ -175,6 +176,11 @@ func (o *Config) SetDefaults() {
o.TeamSettings.RestrictTeamNames = new(bool)
*o.TeamSettings.RestrictTeamNames = true
}
if o.TeamSettings.EnableTeamListing == nil {
o.TeamSettings.EnableTeamListing = new(bool)
*o.TeamSettings.EnableTeamListing = false
}
}
func (o *Config) IsValid() *AppError {