0
0
Fork 0
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:
Jason Volk 2023-02-24 17:23:37 -08:00
parent 8fae18d8ea
commit ce6b4496b3

View file

@ -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."