anonymousland-synapse/synapse/rest/admin
Will Hunt 15382b1afa
Add third_party module callbacks to check if a user can delete a room and deactivate a user (#12028)
* Add check_can_deactivate_user

* Add check_can_shutdown_rooms

* Documentation

* callbacks, not functions

* Various suggested tweaks

* Add tests for test_check_can_shutdown_room and test_check_can_deactivate_user

* Update check_can_deactivate_user to not take a Requester

* Fix check_can_shutdown_room docs

* Renegade and use `by_admin` instead of `admin_user_id`

* fix lint

* Update docs/modules/third_party_rules_callbacks.md

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>

* Update docs/modules/third_party_rules_callbacks.md

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>

* Update docs/modules/third_party_rules_callbacks.md

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>

* Update docs/modules/third_party_rules_callbacks.md

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2022-03-09 18:23:57 +00:00
..
__init__.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
_base.py Convert status codes to HTTPStatus in synapse.rest.admin (#11452) 2021-11-29 22:19:45 +00:00
background_updates.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
devices.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
event_reports.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
federation.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
groups.py Clean up synapse.rest.admin (#11535) 2021-12-08 16:59:40 +00:00
media.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
registration_tokens.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
rooms.py Add third_party module callbacks to check if a user can delete a room and deactivate a user (#12028) 2022-03-09 18:23:57 +00:00
server_notice_servlet.py Clean up synapse.rest.admin (#11535) 2021-12-08 16:59:40 +00:00
statistics.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
username_available.py Clean up synapse.rest.admin (#11535) 2021-12-08 16:59:40 +00:00
users.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00