diff options
author | Travis Ralston <travpc@gmail.com> | 2021-01-19 13:21:17 -0700 |
---|---|---|
committer | Travis Ralston <travpc@gmail.com> | 2021-01-19 13:21:17 -0700 |
commit | 95d7074322c4bfe6e24b78e9b91366933c58d316 (patch) | |
tree | 085e48e344b4d885b32ac6bd7a4d3237106cd191 /synapse/rest/admin/__init__.py | |
parent | Validate the server name for the /publicRooms endpoint. (#9161) (diff) | |
download | synapse-95d7074322c4bfe6e24b78e9b91366933c58d316.tar.xz |
Add admin APIs to force-join users to groups and manage their flair
Fixes https://github.com/matrix-org/synapse/issues/9143 Though the groups API is disappearing soon, these functions are intended to make flair management easier in the short term.
Diffstat (limited to 'synapse/rest/admin/__init__.py')
-rw-r--r-- | synapse/rest/admin/__init__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/synapse/rest/admin/__init__.py b/synapse/rest/admin/__init__.py index 6f7dc06503..b7121c0c26 100644 --- a/synapse/rest/admin/__init__.py +++ b/synapse/rest/admin/__init__.py @@ -31,7 +31,11 @@ from synapse.rest.admin.event_reports import ( EventReportDetailRestServlet, EventReportsRestServlet, ) -from synapse.rest.admin.groups import DeleteGroupAdminRestServlet +from synapse.rest.admin.groups import ( + DeleteGroupAdminRestServlet, + ForceJoinGroupAdminRestServlet, + UpdatePublicityGroupAdminRestServlet, +) from synapse.rest.admin.media import ListMediaInRoom, register_servlets_for_media_repo from synapse.rest.admin.purge_room_servlet import PurgeRoomServlet from synapse.rest.admin.rooms import ( @@ -244,6 +248,8 @@ def register_servlets_for_client_rest_resource(hs, http_server): ShutdownRoomRestServlet(hs).register(http_server) UserRegisterServlet(hs).register(http_server) DeleteGroupAdminRestServlet(hs).register(http_server) + ForceJoinGroupAdminRestServlet(hs).register(http_server) + UpdatePublicityGroupAdminRestServlet(hs).register(http_server) AccountValidityRenewServlet(hs).register(http_server) # Load the media repo ones if we're using them. Otherwise load the servlets which |