diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-06-24 16:08:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 16:08:02 +0100 |
commit | deb4fe6ef38ff5ed849dfbc1ca0a31f242811a27 (patch) | |
tree | ebc82e380d7cea9d544e525d8835e6f3199c1126 /synapse/rest/client/v1/room.py | |
parent | Merge pull request #5531 from matrix-org/erikj/workers_pagination_token (diff) | |
parent | Split public rooms directory auth config in two (diff) | |
download | synapse-deb4fe6ef38ff5ed849dfbc1ca0a31f242811a27.tar.xz |
Merge pull request #5534 from matrix-org/babolivier/federation-publicrooms
Split public rooms directory auth config in two
Diffstat (limited to 'synapse/rest/client/v1/room.py')
-rw-r--r-- | synapse/rest/client/v1/room.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py index a028337125..cca7e45ddb 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py @@ -311,7 +311,7 @@ class PublicRoomListRestServlet(TransactionRestServlet): # Option to allow servers to require auth when accessing # /publicRooms via CS API. This is especially helpful in private # federations. - if self.hs.config.restrict_public_rooms_to_local_users: + if not self.hs.config.allow_public_rooms_without_auth: raise # We allow people to not be authed if they're just looking at our |