Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
users: Fix do_deactivate_user to save is_mirror_user.
Mateusz Mandera0e6d2308045c
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.pyindex c1803905cea..c2d66ad6540 100644--- a/zerver/lib/actions.py+++ b/zerver/lib/actions.py@@ -1137,7 +1137,7 @@ def do_deactivate_user(# isn't running, but that's a separate issue.user_profile.is_mirror_dummy = Trueuser_profile.is_active = False- user_profile.save(update_fields=["is_active"])+ user_profile.save(update_fields=["is_active", "is_mirror_dummy"])delete_user_sessions(user_profile)clear_scheduled_emails([user_profile.id])