MatrixSynapse/synapse/events
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 Add `FrozenEvent.get_state_key` and use it in a couple of places (#11793) 2022-01-21 09:10:01 +00:00
builder.py Remove `HomeServer.get_datastore()` (#12031) 2022-02-23 11:04:02 +00:00
presence_router.py Add type hints to synapse.events.*. (#11066) 2021-10-13 07:24:07 -04:00
snapshot.py Faster joins: persist to database (#12012) 2022-03-01 12:49:54 +00:00
spamcheck.py Remove deprecated user_may_create_room_with_invites callback (#11950) 2022-02-11 13:58:11 +00:00
third_party_rules.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
utils.py Use the proper serialization format when bundling aggregations. (#12090) 2022-03-03 10:43:06 -05:00
validator.py Fix another jsonschema typecheck error (#11830) 2022-01-25 15:29:28 -05:00