diff options
author | Erik Johnston <erikj@jki.re> | 2016-10-11 11:19:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-11 11:19:55 +0100 |
commit | a940618c94edf6819be7a1c26b39d0662cd3aa15 (patch) | |
tree | a7e3420040a13f96b7b1f4696cc771bb60ae7164 /synapse | |
parent | Merge pull request #1160 from matrix-org/rav/401_on_password_fail (diff) | |
parent | api/auth: fix for not being allowed to set your own state_key (diff) | |
download | synapse-a940618c94edf6819be7a1c26b39d0662cd3aa15.tar.xz |
Merge pull request #1150 from Rugvip/state_key
api/auth: fix for not being allowed to set your own state_key
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/api/auth.py | 10 |
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 |