summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-27 22:18:52 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-27 22:18:52 -0700
commitbb25056d9afca501f147450466aaeecca9fef66f (patch)
tree64f7b9eeb590e2cb0fe13b7a2eb55ddb798b30be /model/config.go
parent940f5c29c7c35a66f0b37f62831809e3633a5ea9 (diff)
downloadchat-bb25056d9afca501f147450466aaeecca9fef66f.tar.gz
chat-bb25056d9afca501f147450466aaeecca9fef66f.tar.bz2
chat-bb25056d9afca501f147450466aaeecca9fef66f.zip
PLT-340
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 216b1de86..50a8dc133 100644
--- a/model/config.go
+++ b/model/config.go
@@ -123,6 +123,7 @@ type TeamSettings struct {
EnableUserCreation bool
RestrictCreationToDomains string
RestrictTeamNames *bool
+ EnableTeamListing *bool
}
type Config struct {
@@ -175,6 +176,11 @@ func (o *Config) SetDefaults() {
o.TeamSettings.RestrictTeamNames = new(bool)
*o.TeamSettings.RestrictTeamNames = true
}
+
+ if o.TeamSettings.EnableTeamListing == nil {
+ o.TeamSettings.EnableTeamListing = new(bool)
+ *o.TeamSettings.EnableTeamListing = false
+ }
}
func (o *Config) IsValid() *AppError {