Skip to content

Commit

Permalink
Register the admin user servelet in generic worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar authored and bradtgmurray committed Dec 3, 2024
1 parent 311bc0e commit 6509f0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synapse/rest/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None:
"""
# Admin servlets aren't registered on workers.
if hs.config.worker.worker_app is not None:
# Beep: except this one ;)
UserAdminServlet(hs).register(http_server)
return

register_servlets_for_client_rest_resource(hs, http_server)
Expand Down

0 comments on commit 6509f0a

Please sign in to comment.