mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:56:02 -04:00
pull up event.sender assertion
This commit is contained in:
parent
2ee302d016
commit
fd0282201e
2 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue