Add third_party module callbacks to check if a user can delete a room and...
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>
Showing
- changelog.d/12028.feature 1 addition, 0 deletionschangelog.d/12028.feature
- docs/modules/third_party_rules_callbacks.md 43 additions, 0 deletionsdocs/modules/third_party_rules_callbacks.md
- synapse/events/third_party_rules.py 55 additions, 0 deletionssynapse/events/third_party_rules.py
- synapse/handlers/deactivate_account.py 11 additions, 1 deletionsynapse/handlers/deactivate_account.py
- synapse/handlers/room.py 8 additions, 0 deletionssynapse/handlers/room.py
- synapse/module_api/__init__.py 6 additions, 0 deletionssynapse/module_api/__init__.py
- synapse/rest/admin/rooms.py 9 additions, 0 deletionssynapse/rest/admin/rooms.py
- tests/rest/client/test_third_party_rules.py 121 additions, 0 deletionstests/rest/client/test_third_party_rules.py
Loading
Please register or sign in to comment