From b7fc3d7d35ca4dd16097715a66463392a1dfaf0a Mon Sep 17 00:00:00 2001 From: Martin Kraft Date: Tue, 13 Feb 2018 06:08:21 -0500 Subject: Updates migration tests to reflect front-end mapping changes. (#8237) --- model/config.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'model') 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 { -- cgit v1.2.3-1-g7c22