summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to 'model')
-rw-r--r--model/config.go7
1 files changed, 6 insertions, 1 deletions
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 {