diff options
author | Chris Duarte <csduarte@users.noreply.github.com> | 2017-11-28 11:46:48 -0800 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-11-28 11:46:48 -0800 |
commit | 27ba68a7894d5204b8d75dc7353774977d62fa15 (patch) | |
tree | 28af6c0900a1967ee8145575daca57c76f781d79 /model | |
parent | 785a410936daff5db7fba07dc5735bd74dd158bb (diff) | |
download | chat-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')
-rw-r--r-- | model/config.go | 5 |
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) } |