diff options
author | Shay <hillerys@element.io> | 2022-08-24 14:18:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 14:18:31 -0700 |
commit | 172b651832cea2d832beb5c4ff5bfae4581c8e63 (patch) | |
tree | ebd49a80d21b84b51606da49d2a94241d4f1c13a /synapse/http/site.py | |
parent | fix test to align with new behaviour (diff) | |
parent | Rename `event_map` to `unpersisted_events` (#13603) (diff) | |
download | synapse-172b651832cea2d832beb5c4ff5bfae4581c8e63.tar.xz |
Merge branch 'develop' into shay/batch_events
Diffstat (limited to 'synapse/http/site.py')
-rw-r--r-- | synapse/http/site.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/site.py b/synapse/http/site.py index eeec74b78a..1155f3f610 100644 --- a/synapse/http/site.py +++ b/synapse/http/site.py @@ -226,7 +226,7 @@ class SynapseRequest(Request): # If this is a request where the target user doesn't match the user who # authenticated (e.g. and admin is puppetting a user) then we return both. - if self._requester.user.to_string() != authenticated_entity: + if requester != authenticated_entity: return requester, authenticated_entity return requester, None |