summary refs log tree commit diff
path: root/synapse/rest/client/v1/room.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-06-24 11:45:11 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-06-24 16:41:48 +0100
commit84875301b679b33284824d9bc413becc10427987 (patch)
tree577d680284b7aa66ba6b8593bb062fc6c9df682f /synapse/rest/client/v1/room.py
parentMerge pull request #5495 from matrix-org/babolivier/deactivate_bg_job_typo (diff)
downloadsynapse-84875301b679b33284824d9bc413becc10427987.tar.xz
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py

index 3f73ccd6bc..151b553730 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py
@@ -320,7 +320,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