summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorTravis Ralston <travpc@gmail.com>2018-11-01 16:47:05 -0600
committerTravis Ralston <travpc@gmail.com>2018-11-01 16:48:32 -0600
commit642505abc385afe7849f60c37f8ef99592f8f7b4 (patch)
treef9b327df5f207ace6c47b224189d5f36cc866210 /synapse/rest
parentMerge pull request #3778 from z3ntu/patch-1 (diff)
downloadsynapse-642505abc385afe7849f60c37f8ef99592f8f7b4.tar.xz
Fix logic error that prevented guests from seeing the privacy policy
Diffstat (limited to 'synapse/rest')
-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 4cadd71d7e..89b82b0591 100644
--- a/synapse/rest/consent/consent_resource.py
+++ b/synapse/rest/consent/consent_resource.py
@@ -141,7 +141,7 @@ class ConsentResource(Resource):
         username = parse_string(request, "u", required=False, default="")
         userhmac = None
         has_consented = False
-        public_version = username != ""
+        public_version = username == ""
         if not public_version:
             userhmac = parse_string(request, "h", required=True, encoding=None)