summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorPatrik Oldsberg <patrik.oldsberg@ericsson.com>2016-09-29 01:27:36 +0200
committerPatrik Oldsberg <patrik.oldsberg@ericsson.com>2016-09-30 13:08:25 +0200
commit24a70e19c7aa46e5da3215ef6605d85b111d3f99 (patch)
treee229fd01cc89dd47a6feb0a26aa741d7047ec083 /synapse/api
parentMerge pull request #1146 from matrix-org/erikj/port_script_fix (diff)
downloadsynapse-24a70e19c7aa46e5da3215ef6605d85b111d3f99.tar.xz
api/auth: fix for not being allowed to set your own state_key
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
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