diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/config.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/model/config.go b/model/config.go index 8fb11d403..f20a11ab8 100644 --- a/model/config.go +++ b/model/config.go @@ -962,7 +962,7 @@ func (s *ThemeSettings) SetDefaults() { type TeamSettings struct { SiteName string MaxUsersPerTeam *int - EnableTeamCreation bool + EnableTeamCreation *bool EnableUserCreation bool EnableOpenServer *bool RestrictCreationToDomains string @@ -1085,6 +1085,10 @@ func (s *TeamSettings) SetDefaults() { if s.ExperimentalPrimaryTeam == nil { s.ExperimentalPrimaryTeam = NewString("") } + + if s.EnableTeamCreation == nil { + s.EnableTeamCreation = NewBool(true) + } } type ClientRequirements struct { |