summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to 'model')
-rw-r--r--model/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 65608c9a5..58b3da4d1 100644
--- a/model/config.go
+++ b/model/config.go
@@ -354,6 +354,7 @@ type TeamSettings struct {
MaxChannelsPerTeam *int64
MaxNotificationsPerChannel *int64
TeammateNameDisplay *string
+ ExperimentalTownSquareIsReadOnly *bool
}
type ClientRequirements struct {
@@ -824,6 +825,11 @@ func (o *Config) SetDefaults() {
*o.TeamSettings.MaxNotificationsPerChannel = 1000
}
+ if o.TeamSettings.ExperimentalTownSquareIsReadOnly == nil {
+ o.TeamSettings.ExperimentalTownSquareIsReadOnly = new(bool)
+ *o.TeamSettings.ExperimentalTownSquareIsReadOnly = false
+ }
+
if o.EmailSettings.EnableSignInWithEmail == nil {
o.EmailSettings.EnableSignInWithEmail = new(bool)