summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/model/config.go b/model/config.go
index 4e13ca16e..5cc2488e0 100644
--- a/model/config.go
+++ b/model/config.go
@@ -424,7 +424,7 @@ func (s *ServiceSettings) SetDefaults() {
}
if s.PostEditTimeLimit == nil {
- s.PostEditTimeLimit = NewInt(300)
+ s.PostEditTimeLimit = NewInt(-1)
}
if s.EnablePreviewFeatures == nil {
@@ -967,7 +967,7 @@ func (s *ThemeSettings) SetDefaults() {
type TeamSettings struct {
SiteName string
MaxUsersPerTeam *int
- EnableTeamCreation bool
+ EnableTeamCreation *bool
EnableUserCreation bool
EnableOpenServer *bool
RestrictCreationToDomains string
@@ -1090,6 +1090,10 @@ func (s *TeamSettings) SetDefaults() {
if s.ExperimentalPrimaryTeam == nil {
s.ExperimentalPrimaryTeam = NewString("")
}
+
+ if s.EnableTeamCreation == nil {
+ s.EnableTeamCreation = NewBool(true)
+ }
}
type ClientRequirements struct {