diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-10-05 19:00:50 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-10-05 19:00:50 +0100 |
commit | fd0282201e8876e3a860766fff89561564041260 (patch) | |
tree | 22d170c60fcd7884a7b706ef2cf34096ad6bd827 /synapse/handlers/room.py | |
parent | Move shadow-ban check down into `handle_new_client_event`. (diff) | |
download | synapse-fd0282201e8876e3a860766fff89561564041260.tar.xz |
pull up event.sender assertion
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index f14f791586..530bf0ab88 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -185,6 +185,7 @@ class RoomCreationHandler(BaseHandler): ShadowBanError if the requester is shadow-banned. """ user_id = requester.user.to_string() + assert self.hs.is_mine_id(user_id), "User must be our own: %s" % (user_id,) # start by allocating a new room id r = await self.store.get_room(old_room_id) |