mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-15 07:11:49 -05:00
Clarify error message when joining a restricted room. (#10572)
This commit is contained in:
parent
fab352ac2c
commit
2ae2a04616
2 changed files with 2 additions and 1 deletions
1
changelog.d/10572.misc
Normal file
1
changelog.d/10572.misc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Clarify error message when failing to join a restricted room.
|
||||||
|
|
@ -213,7 +213,7 @@ class EventAuthHandler:
|
||||||
|
|
||||||
raise AuthError(
|
raise AuthError(
|
||||||
403,
|
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(
|
async def has_restricted_join_rules(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue