mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 14:44:18 -05:00
Merge pull request #1922 from matrix-org/dbkr/allow_forget_for_ban
Allow forgetting rooms you're banned from
This commit is contained in:
commit
8c87bb550e
@ -719,7 +719,9 @@ class RoomMemberHandler(BaseHandler):
|
|||||||
)
|
)
|
||||||
membership = member.membership if member else None
|
membership = member.membership if member else None
|
||||||
|
|
||||||
if membership is not None and membership != Membership.LEAVE:
|
if membership is not None and membership not in [
|
||||||
|
Membership.LEAVE, Membership.BAN
|
||||||
|
]:
|
||||||
raise SynapseError(400, "User %s in room %s" % (
|
raise SynapseError(400, "User %s in room %s" % (
|
||||||
user_id, room_id
|
user_id, room_id
|
||||||
))
|
))
|
||||||
|
Loading…
Reference in New Issue
Block a user