mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
user_groups: Swap parameter order in is_direct_member_of function.
This commit swaps the parameter order in is_direct_member_of function to have user_id followed by user_group_id since user_id is a member of user_group_id and not the other way around.
This commit is contained in:
@@ -47,7 +47,7 @@ export function can_edit(group_id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return user_groups.is_direct_member_of(group_id, people.my_current_user_id());
|
||||
return user_groups.is_direct_member_of(people.my_current_user_id(), group_id);
|
||||
}
|
||||
|
||||
export function populate_user_groups() {
|
||||
|
||||
Reference in New Issue
Block a user