summary refs log tree commit diff
path: root/synapse/api/auth.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--synapse/api/auth.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index e75fd518be..b994f07de4 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -1002,16 +1002,6 @@ class Auth(object):
                         403,
                         "You are not allowed to set others state"
                     )
-                else:
-                    sender_domain = UserID.from_string(
-                        event.user_id
-                    ).domain
-
-                    if sender_domain != event.state_key:
-                        raise AuthError(
-                            403,
-                            "You are not allowed to set others state"
-                        )
 
         return True