do_delete_user: Make the replacement dummy user inactive.

Otherwise, the dummy user will show up in the user list in the right
sidebar.
This commit is contained in:
Mateusz Mandera
2021-10-05 21:56:37 +02:00
committed by Tim Abbott
parent fc13dd6f3d
commit dffdeb48e7
2 changed files with 2 additions and 0 deletions

View File

@@ -1228,6 +1228,7 @@ def do_delete_user(user_profile: UserProfile) -> None:
password=None,
realm=realm,
full_name=f"Deleted User {user_id}",
active=False,
is_mirror_dummy=True,
)
subs_to_recreate = [