Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
STASH
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Sep 20, 2022
1 parent 4f16819 commit 4be61a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/handlers/event_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ async def assert_host_in_room(
errcode=Codes.UNABLE_DUE_TO_PARTIAL_STATE,
)

if await self.is_host_in_room(room_id, host):
raise AuthError(403, "Host not in room.")
if not await self.is_host_in_room(room_id, host):
raise AuthError(403, f"Host '{host}' not in room.")

async def check_restricted_join_rules(
self,
Expand Down

0 comments on commit 4be61a6

Please sign in to comment.