diff options
author | Erik Johnston <erikj@matrix.org> | 2023-09-14 12:46:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 12:46:30 +0100 |
commit | 954921736b88de25c775c519a206449e46b3bf07 (patch) | |
tree | d4e428b26c39659d9da44996d9d3db3bcf6f2ddd /synapse/rest/consent/consent_resource.py | |
parent | Remove a reference cycle in background process (#16314) (diff) | |
download | synapse-954921736b88de25c775c519a206449e46b3bf07.tar.xz |
Refactor `get_user_by_id` (#16316)
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 25f9ea285b..88d3ec1baf 100644 --- a/synapse/rest/consent/consent_resource.py +++ b/synapse/rest/consent/consent_resource.py @@ -129,7 +129,7 @@ class ConsentResource(DirectServeHtmlResource): if u is None: raise NotFoundError("Unknown user") - has_consented = u["consent_version"] == version + has_consented = u.consent_version == version userhmac = userhmac_bytes.decode("ascii") try: |