summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2016-10-11 11:19:55 +0100
committerGitHub <noreply@github.com>2016-10-11 11:19:55 +0100
commita940618c94edf6819be7a1c26b39d0662cd3aa15 (patch)
treea7e3420040a13f96b7b1f4696cc771bb60ae7164
parentMerge pull request #1160 from matrix-org/rav/401_on_password_fail (diff)
parentapi/auth: fix for not being allowed to set your own state_key (diff)
downloadsynapse-a940618c94edf6819be7a1c26b39d0662cd3aa15.tar.xz
Merge pull request #1150 from Rugvip/state_key
api/auth: fix for not being allowed to set your own state_key
-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