From 27ba68a7894d5204b8d75dc7353774977d62fa15 Mon Sep 17 00:00:00 2001 From: Chris Duarte Date: Tue, 28 Nov 2017 11:46:48 -0800 Subject: Add Config to disable Auth Transfers. (#7843) * Add Config to disable Auth Transfers. * Set config ExperimentalEnableAuthenticationTransfer behind an E20 license restriction --- 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 00322156e..e2f05d72e 100644 --- a/model/config.go +++ b/model/config.go @@ -203,6 +203,7 @@ type ServiceSettings struct { EnableUserTypingMessages *bool EnableChannelViewedMessages *bool EnableUserStatuses *bool + ExperimentalEnableAuthenticationTransfer *bool ClusterLogTimeoutMilliseconds *int CloseUnusedDirectMessages *bool EnablePreviewFeatures *bool @@ -391,6 +392,10 @@ func (s *ServiceSettings) SetDefaults() { s.AllowEditPost = NewString(ALLOW_EDIT_POST_ALWAYS) } + if s.ExperimentalEnableAuthenticationTransfer == nil { + s.ExperimentalEnableAuthenticationTransfer = NewBool(true) + } + if s.PostEditTimeLimit == nil { s.PostEditTimeLimit = NewInt(300) } -- cgit v1.2.3-1-g7c22