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

Commit

Permalink
Clarify error message when joining a restricted room. (#10572)
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep authored Aug 11, 2021
1 parent fab352a commit 2ae2a04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/10572.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify error message when failing to join a restricted room.
2 changes: 1 addition & 1 deletion synapse/handlers/event_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def check_restricted_join_rules(

raise AuthError(
403,
"You do not belong to any of the required rooms to join this room.",
"You do not belong to any of the required rooms/spaces to join this room.",
)

async def has_restricted_join_rules(
Expand Down

0 comments on commit 2ae2a04

Please sign in to comment.