user_groups: Track acting user for remove_members_from_user_group.

This is a prep-commit for populating RealmAuditLogs for changes made to
UserGroup.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li
2022-11-20 19:06:15 -08:00
committed by Tim Abbott
parent 7ae4549b3f
commit e4cf3611cf
4 changed files with 14 additions and 5 deletions

View File

@@ -452,7 +452,9 @@ class MissedMessageNotificationsTest(ZulipTestCase):
already_notified={"email_notified": True, "push_notified": True},
)
destroy_event_queue(user_profile, client_descriptor.event_queue.id)
remove_members_from_user_group(hamlet_and_cordelia, [user_profile.id, cordelia.id])
remove_members_from_user_group(
hamlet_and_cordelia, [user_profile.id, cordelia.id], acting_user=None
)
# Test the hook with a stream message with stream_push_notify
change_subscription_properties(user_profile, stream, sub, {"push_notifications": True})