Allow forgetting rooms you're banned from

This commit is contained in:
David Baker 2017-02-15 19:32:20 +00:00
parent fa467e62a9
commit 474c9aadbe
1 changed files with 3 additions and 1 deletions

View File

@ -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
)) ))