diff options
author | Travis Ralston <travpc@gmail.com> | 2018-11-01 16:47:05 -0600 |
---|---|---|
committer | Travis Ralston <travpc@gmail.com> | 2018-11-01 16:48:32 -0600 |
commit | 642505abc385afe7849f60c37f8ef99592f8f7b4 (patch) | |
tree | f9b327df5f207ace6c47b224189d5f36cc866210 /synapse/rest/consent/consent_resource.py | |
parent | Merge pull request #3778 from z3ntu/patch-1 (diff) | |
download | synapse-642505abc385afe7849f60c37f8ef99592f8f7b4.tar.xz |
Fix logic error that prevented guests from seeing the privacy policy
Diffstat (limited to 'synapse/rest/consent/consent_resource.py')
-rw-r--r-- | synapse/rest/consent/consent_resource.py | 2 |
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) |