summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-05-17 12:09:18 +0100
committerRichard van der Hoff <richard@matrix.org>2018-05-22 11:54:51 +0100
commitd14d7b8fdc67f8f784c69605f95fe136e032b5d4 (patch)
tree57c0e1afb12d2635b5bc6bf38e833a8bdf1592bf /synapse/config
parentMerge pull request #3255 from matrix-org/rav/fix_transactions (diff)
downloadsynapse-d14d7b8fdc67f8f784c69605f95fe136e032b5d4.tar.xz
Rename 'version' param on user consent config
we're going to use it for the version we require too.
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/consent_config.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/synapse/config/consent_config.py b/synapse/config/consent_config.py
index 675fce0911..45856b9e8a 100644
--- a/synapse/config/consent_config.py
+++ b/synapse/config/consent_config.py
@@ -18,19 +18,21 @@ from ._base import Config
 DEFAULT_CONFIG = """\
 # User Consent configuration
 #
-# uncomment and configure if enabling the 'consent' resource under 'listeners'.
+# Parts of this section are required if enabling the 'consent' resource under
+# 'listeners', in particular 'template_dir' and 'version'.
 #
 # 'template_dir' gives the location of the templates for the HTML forms.
 # This directory should contain one subdirectory per language (eg, 'en', 'fr'),
 # and each language directory should contain the policy document (named as
 # '<version>.html') and a success page (success.html).
 #
-# 'default_version' gives the version of the policy document to serve up if
-# there is no 'v' parameter.
+# 'version' specifies the 'current' version of the policy document. It defines
+# the version to be served by the consent resource if there is no 'v'
+# parameter.
 #
 # user_consent:
 #   template_dir: res/templates/privacy
-#   default_version: 1.0
+#   version: 1.0
 """