mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-20 02:24:54 +03:00
Fix 'block non-admins from publishing to room directory'
This commit is contained in:
parent
c2deef254a
commit
e21ffb8948
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue