summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorMartin Kraft <mkraft@users.noreply.github.com>2018-02-13 06:08:21 -0500
committerJesús Espino <jespinog@gmail.com>2018-02-13 12:08:21 +0100
commitb7fc3d7d35ca4dd16097715a66463392a1dfaf0a (patch)
treef3ab26dcd84c3377bc34542a63facf21df6c0bc6 /model/config.go
parent93254308599357fac665fce604f3506ee8a845fa (diff)
downloadchat-b7fc3d7d35ca4dd16097715a66463392a1dfaf0a.tar.gz
chat-b7fc3d7d35ca4dd16097715a66463392a1dfaf0a.tar.bz2
chat-b7fc3d7d35ca4dd16097715a66463392a1dfaf0a.zip
Updates migration tests to reflect front-end mapping changes. (#8237)
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go6
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 {