summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2018-06-18 12:39:22 -0400
committerGitHub <noreply@github.com>2018-06-18 12:39:22 -0400
commit6d8140337ef0f68f5177988f3c87bba5e4946399 (patch)
tree44dbe951f53f6de8cc9fceac2f51ca7a175a55bf /model/config.go
parentf48d31c7a4c0332bfd10b986eee50611ab987e7c (diff)
downloadchat-6d8140337ef0f68f5177988f3c87bba5e4946399.tar.gz
chat-6d8140337ef0f68f5177988f3c87bba5e4946399.tar.bz2
chat-6d8140337ef0f68f5177988f3c87bba5e4946399.zip
MM-8701 Limit the number of client config fields sent before user logs in (#8954)
* MM-8701 Limit the number of client config fields sent before user logs in * Fixed missing client config field * Reduced duplication between limited and regular client config
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 47e2f68a4..2f40c22b0 100644
--- a/model/config.go
+++ b/model/config.go
@@ -230,6 +230,7 @@ type ServiceSettings struct {
ImageProxyOptions *string
EnableAPITeamDeletion *bool
ExperimentalEnableHardenedMode *bool
+ ExperimentalLimitClientConfig *bool
}
func (s *ServiceSettings) SetDefaults() {
@@ -466,6 +467,10 @@ func (s *ServiceSettings) SetDefaults() {
if s.ExperimentalEnableHardenedMode == nil {
s.ExperimentalEnableHardenedMode = NewBool(false)
}
+
+ if s.ExperimentalLimitClientConfig == nil {
+ s.ExperimentalLimitClientConfig = NewBool(false)
+ }
}
type ClusterSettings struct {