diff options
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 cd388770c8..6ab9cdc116 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py @@ -294,7 +294,7 @@ class PublicRoomListRestServlet(ClientV1RestServlet): # In both cases we call the auth function, as that has the side # effect of logging who issued this request if an access token was # provided. - if server: + if server or self.hs.config.require_auth_for_room_directory: raise e else: pass |