summary refs log tree commit diff
path: root/synapse/rest/consent/consent_resource.py
diff options
context:
space:
mode:
authorTravis Ralston <travpc@gmail.com>2018-11-06 03:32:34 -0700
committerRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-11-06 10:32:34 +0000
commit0f5e51f726756318f355d988856730a9930e2d2f (patch)
treef01b2b5e438f669497e24dad108b23cb4a81ba7c /synapse/rest/consent/consent_resource.py
parenthandle empty backups according to latest spec proposal (#4123) (diff)
downloadsynapse-0f5e51f726756318f355d988856730a9930e2d2f.tar.xz
Add config variables for enabling terms auth and the policy name (#4142)
So people can still collect consent the old way if they want to.
Diffstat (limited to 'synapse/rest/consent/consent_resource.py')
-rw-r--r--synapse/rest/consent/consent_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/consent/consent_resource.py b/synapse/rest/consent/consent_resource.py
index c85e84b465..e0f7de5d5c 100644
--- a/synapse/rest/consent/consent_resource.py
+++ b/synapse/rest/consent/consent_resource.py
@@ -142,7 +142,7 @@ class ConsentResource(Resource):
         userhmac = None
         has_consented = False
         public_version = username == ""
-        if not public_version:
+        if not public_version or not self.hs.config.user_consent_at_registration:
             userhmac = parse_string(request, "h", required=True, encoding=None)
 
             self._check_hash(username, userhmac)