anonymousland-synapse/synapse
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
..
_scripts Move synctl into synapse._scripts and expose as an entrypoint (#12140) 2022-03-04 11:58:49 +00:00
api Fix PushRuleEvaluator and Filter to work on frozendicts (#12100) 2022-02-28 17:40:24 +00:00
app Use importlib.metadata to read requirements (#12088) 2022-03-01 17:44:41 +00:00
appservice Rename various ApplicationServices interested methods (#11915) 2022-03-03 18:14:09 +00:00
config Move scripts directory inside synapse, exposing as setuptools entry_points (#12118) 2022-03-02 13:00:16 +00:00
crypto Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
events 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
federation Spread out sending device lists to remote hosts (#12132) 2022-03-04 11:48:15 +00:00
groups Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
handlers 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
http Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
logging Use ParamSpec in type hints for synapse.logging.context (#12150) 2022-03-08 15:58:14 +00:00
metrics Use version string helper from matrix-common (#11979) 2022-02-14 13:12:22 +00:00
module_api 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
push Fix PushRuleEvaluator and Filter to work on frozendicts (#12100) 2022-02-28 17:40:24 +00:00
replication Retry some http replication failures (#12182) 2022-03-09 14:53:28 +00:00
res Fetch images when previewing Twitter URLs. (#11985) 2022-02-22 07:11:39 -05:00
rest 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_notices Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Fix type of events in StateGroupStorage and StateHandler (#12156) 2022-03-04 10:25:18 +00:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Allow for ignoring some arguments when caching. (#12189) 2022-03-09 18:07:41 +00:00
streams Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
util Allow for ignoring some arguments when caching. (#12189) 2022-03-09 18:07:41 +00:00
__init__.py Merge branch 'master' into develop 2022-03-08 15:37:35 +00:00
event_auth.py Remove excess condition on knock->leave check (#11900) 2022-02-22 18:35:01 +00:00
notifier.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
python_dependencies.py Use ParamSpec in type hints for synapse.logging.context (#12150) 2022-03-08 15:58:14 +00:00
server.py Fix incorrect type hints for txredis. (#12042) 2022-03-08 07:26:05 -05:00
types.py Add type hints to synapse/storage/databases/main (#11984) 2022-02-21 16:03:06 +00:00
visibility.py Update client-visibility filtering for outlier events (#12155) 2022-03-04 10:31:19 +00:00