mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 14:31:11 +01:00
modules/federation/make_join: Check visibility only for non-public rooms.
This commit is contained in:
parent
8fae18d8ea
commit
ce6b4496b3
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ get__make_join(client &client,
|
|||
"You are not permitted by the room's server access control list."
|
||||
};
|
||||
|
||||
if(!visible(room, user_id))
|
||||
if(!join_rule(room, "public") && !visible(room, user_id))
|
||||
throw m::ACCESS_DENIED
|
||||
{
|
||||
"You are not permitted to view the room at this event."
|
||||
|
|
Loading…
Reference in a new issue