mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
user_groups: Pass list of user ids to bulk_add_members_to_user_group.
We pass list of user ids instead of user profile objects to bulk_add_members_to_user_group. We still need to call user_id_to_users in the views function instead of directly passing the ids to bulk_add_members_to_user_group to make sure we check whether all ids are valid or not.
This commit is contained in:
@@ -126,7 +126,8 @@ def add_members_to_group_backend(
|
||||
)
|
||||
)
|
||||
|
||||
bulk_add_members_to_user_group(user_group, user_profiles)
|
||||
user_profile_ids = [user.id for user in user_profiles]
|
||||
bulk_add_members_to_user_group(user_group, user_profile_ids)
|
||||
return json_success(request)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user