summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorChris Duarte <csduarte@users.noreply.github.com>2017-11-28 11:46:48 -0800
committerChristopher Speller <crspeller@gmail.com>2017-11-28 11:46:48 -0800
commit27ba68a7894d5204b8d75dc7353774977d62fa15 (patch)
tree28af6c0900a1967ee8145575daca57c76f781d79 /model/config.go
parent785a410936daff5db7fba07dc5735bd74dd158bb (diff)
downloadchat-27ba68a7894d5204b8d75dc7353774977d62fa15.tar.gz
chat-27ba68a7894d5204b8d75dc7353774977d62fa15.tar.bz2
chat-27ba68a7894d5204b8d75dc7353774977d62fa15.zip
Add Config to disable Auth Transfers. (#7843)
* Add Config to disable Auth Transfers. * Set config ExperimentalEnableAuthenticationTransfer behind an E20 license restriction
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 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)
}