mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
user_groups: Remove incorrect comment.
There was a comment mentioning get_all_realm_user_groups was only used in tests, but we now use it to get potential subgroups of a group, so that comment is removed.
This commit is contained in:
@@ -158,9 +158,6 @@ export function get_realm_user_groups(include_deactivated = false): UserGroup[]
|
||||
});
|
||||
}
|
||||
|
||||
// This is only used for testing currently, but would be used in
|
||||
// future when we use system groups more and probably show them
|
||||
// in the UI as well.
|
||||
export function get_all_realm_user_groups(include_deactivated = false): UserGroup[] {
|
||||
const user_groups = [...user_group_by_id_dict.values()].sort((a, b) => a.id - b.id);
|
||||
return user_groups.filter((group) => include_deactivated || !group.deactivated);
|
||||
|
||||
Reference in New Issue
Block a user