summary refs log tree commit diff
path: root/synapse/http/site.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2022-09-02 16:33:57 +0200
committerGitHub <noreply@github.com>2022-09-02 16:33:57 +0200
commit644d2a595b96918594400e9505dc815c7467c274 (patch)
tree8ba596576d4f434983e484528be8cf08009d5076 /synapse/http/site.py
parentUpdate .github/workflows/sonarqube.yml (diff)
parentUpdate lock file for Poetry v1.2.0 (#13689) (diff)
downloadsynapse-644d2a595b96918594400e9505dc815c7467c274.tar.xz
Merge branch 'develop' into babolivier/sonar_coverage
Diffstat (limited to 'synapse/http/site.py')
-rw-r--r--synapse/http/site.py2
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