Skip to content

Commit

Permalink
test forbid to leave matrix-org#1
Browse files Browse the repository at this point in the history
  • Loading branch information
lxndrbnsv committed Sep 30, 2021
1 parent e172958 commit c9cdd8a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions synapse/rest/client/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,10 +831,11 @@ async def on_POST(
return_value["room_id"] = room_id

if membership_action == "leave":
raise SynapseError(
400,
"Can't leave this room!"
)
return_value = SynapseError(400, "NO!")
# raise SynapseError(
# 400,
# "Leaving this room is not allowed!",
# )

return 200, return_value

Expand Down

0 comments on commit c9cdd8a

Please sign in to comment.