anonymousland-synapse/synapse/handlers
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
..
ui_auth Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
account_data.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
account_validity.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
account.py Remove more references to get_datastore (#12067) 2022-02-23 12:35:53 +00:00
admin.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
appservice.py Rename various ApplicationServices interested methods (#11915) 2022-03-03 18:14:09 +00:00
auth.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
cas.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
deactivate_account.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
device.py Spread out sending device lists to remote hosts (#12132) 2022-03-04 11:48:15 +00:00
devicemessage.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
directory.py Rename various ApplicationServices interested methods (#11915) 2022-03-03 18:14:09 +00:00
e2e_keys.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
e2e_room_keys.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
event_auth.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
events.py Use the proper serialization format when bundling aggregations. (#12090) 2022-03-03 10:43:06 -05:00
federation_event.py Faster joins: persist to database (#12012) 2022-03-01 12:49:54 +00:00
federation.py Skip attempt to get state at backwards-extremities (#12173) 2022-03-09 11:00:48 +00:00
groups_local.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
identity.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
initial_sync.py Use ParamSpec in type hints for synapse.logging.context (#12150) 2022-03-08 15:58:14 +00:00
message.py Limit the size of the aggregation_key (#12101) 2022-03-03 10:52:35 +00:00
oidc.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
pagination.py Use the proper serialization format when bundling aggregations. (#12090) 2022-03-03 10:43:06 -05:00
password_policy.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
presence.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
profile.py Add module callbacks called for reacting to deactivation status change and profile update (#12062) 2022-03-01 15:00:03 +00:00
read_marker.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
receipts.py Rename various ApplicationServices interested methods (#11915) 2022-03-03 18:14:09 +00:00
register.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
room_batch.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
room_list.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
room_member_worker.py Implement knock feature (#6739) 2021-06-09 19:39:51 +01:00
room_member.py Avoid generating state groups for local out-of-band leaves (#12154) 2022-03-03 19:58:08 +00:00
room_summary.py Do not return allowed_room_ids from /hierarchy response. (#12175) 2022-03-08 08:09:11 -05:00
room.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
saml.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
search.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
send_email.py Remove unnecessary ignores due to Twisted upgrade. (#11939) 2022-02-08 09:15:59 -05:00
set_password.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
sso.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
state_deltas.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
stats.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
sync.py Add logging to /sync for debugging #11916 (#12068) 2022-02-23 14:22:22 +00:00
typing.py Rename various ApplicationServices interested methods (#11915) 2022-03-03 18:14:09 +00:00
user_directory.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00