diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-06-24 11:45:11 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-06-24 15:42:31 +0100 |
commit | bfe84e051e8472a1c3534e1287f1fb727df63259 (patch) | |
tree | 519b95c690cf4c6c81eb9c22bcbb4773ba7e894b /synapse/rest | |
parent | Pass config_dir_path and data_dir_path into Config.read_config. (#5522) (diff) | |
download | synapse-bfe84e051e8472a1c3534e1287f1fb727df63259.tar.xz |
Split public rooms directory auth config in two
Diffstat (limited to 'synapse/rest')
-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 |