diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-11-02 10:50:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-02 10:50:43 +0000 |
commit | 00f12e00f8b7cbc6990482e4d5babab07d0c8611 (patch) | |
tree | b42a56aaadec1b50bf74938779c4c4df66f10234 /synapse | |
parent | Merge pull request #4135 from matrix-org/erikj/fix_state_res_none (diff) | |
parent | Changelog (diff) | |
download | synapse-00f12e00f8b7cbc6990482e4d5babab07d0c8611.tar.xz |
Merge pull request #4133 from matrix-org/travis/fix-terms-auth
Fix logic error that prevented guests from seeing the privacy policy
Diffstat (limited to 'synapse')
-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) |