mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-20 10:55:09 +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
|
# temporarily block publishing rooms to public directory for non-admins
|
||||||
# patch date 12/12/23
|
# patch date 12/12/23
|
||||||
if content.visibility == "public":
|
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:
|
if not is_admin:
|
||||||
raise AuthError(
|
raise AuthError(
|
||||||
403,
|
403,
|
||||||
|
|
Loading…
Reference in a new issue