From 6d8140337ef0f68f5177988f3c87bba5e4946399 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Mon, 18 Jun 2018 12:39:22 -0400 Subject: 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 --- model/config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'model/config.go') 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 { -- cgit v1.2.3-1-g7c22