summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2021-12-08 15:00:13 +0000
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2021-12-08 15:00:13 +0000
commit7ea5022be8b7891dd8a01dc85ab31501bc2c212c (patch)
tree929de5c244c8a9f9c87816ab22c5fdd65ceb444d
parentExpand get_user_by_req to support handling a device ID (diff)
downloadsynapse-7ea5022be8b7891dd8a01dc85ab31501bc2c212c.tar.xz
Remove superfluous lines
-rw-r--r--synapse/api/auth.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 26d6007a04..5f7e9163c6 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -333,8 +333,6 @@ class Auth:
         user_id = request.args[b"user_id"][0].decode("utf8")
         await self.validate_appservice_can_control_user_id(app_service, user_id)
 
-        if app_service.sender == user_id:
-            return app_service.sender, None, app_service
 
         return user_id, None, app_service