mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
do_deactivate_realm: Add deactivation_reason kwarg.
It's going to be helpful in the future to record the reason for realm deactivation. - For information tracking - For making a distinction between cases where we can allow realm owners to reactivate their realm via a self-serve flow (e.g. "owner_request") vs where we can't (ToS abuse).
This commit is contained in:
committed by
Tim Abbott
parent
6af748fa77
commit
27c4e46b30
@@ -116,7 +116,7 @@ with test_server_running(
|
||||
do_reactivate_user(guest_user, acting_user=None)
|
||||
|
||||
# Test realm deactivated error
|
||||
do_deactivate_realm(guest_user.realm, acting_user=None)
|
||||
do_deactivate_realm(guest_user.realm, acting_user=None, deactivation_reason="owner_request")
|
||||
|
||||
client = Client(
|
||||
email=email,
|
||||
|
Reference in New Issue
Block a user