summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2023-12-22 11:25:15 +0000
committerErik Johnston <erik@matrix.org>2023-12-22 11:25:15 +0000
commite21ffb894839742520c9546486bacf1b3a8f2a26 (patch)
tree0d7c4f4d36bd2c1e506c186b324da71d7b72947d
parentMerge remote-tracking branch 'shay/shay/freeze_directory' into matrix-org-hot... (diff)
downloadsynapse-e21ffb894839742520c9546486bacf1b3a8f2a26.tar.xz
Fix 'block non-admins from publishing to room directory'
-rw-r--r--synapse/rest/client/directory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/directory.py b/synapse/rest/client/directory.py

index 0d16758f85..a4c9132e28 100644 --- a/synapse/rest/client/directory.py +++ b/synapse/rest/client/directory.py
@@ -162,7 +162,7 @@ class ClientDirectoryListServer(RestServlet): # temporarily block publishing rooms to public directory for non-admins # patch date 12/12/23 if content.visibility == "public": - is_admin = await self.is_server_admin(requester) + is_admin = await self.auth.is_server_admin(requester) if not is_admin: raise AuthError( 403,