From d3ead7dc8535f8fa5b175686cc1f7669c8b1648b Mon Sep 17 00:00:00 2001 From: Balasankar C Date: Fri, 18 May 2018 19:27:30 +0530 Subject: MM-10640 Set EnableUserCreation to true by default (#8815) * Set EnableUserCreation to true by default * Fix argument type to FormatBool * Convert EnableUserCreation instances to pointer * Convert to boolean in tests also * Set value of pointer to be false * Convert remaining EnableUserCreation instances to pointer --- model/config.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'model/config.go') diff --git a/model/config.go b/model/config.go index 64107c42d..a54d44110 100644 --- a/model/config.go +++ b/model/config.go @@ -980,7 +980,7 @@ type TeamSettings struct { SiteName string MaxUsersPerTeam *int EnableTeamCreation *bool - EnableUserCreation bool + EnableUserCreation *bool EnableOpenServer *bool RestrictCreationToDomains string EnableCustomBrand *bool @@ -1111,6 +1111,11 @@ func (s *TeamSettings) SetDefaults() { if s.EnableTeamCreation == nil { s.EnableTeamCreation = NewBool(true) } + + if s.EnableUserCreation == nil { + s.EnableUserCreation = NewBool(true) + } + } type ClientRequirements struct { -- cgit v1.2.3-1-g7c22