user_groups: Temporarily remove is_system_group check.

This effectively reverts 6117c3824a,
which merge conflicted with the typescript migration on this file, and
this commit is easier to undo.
This commit is contained in:
Tim Abbott 2021-09-15 17:18:51 -07:00
parent 9de3b2f4fd
commit 1543775ac6
1 changed files with 1 additions and 2 deletions

View File

@ -71,8 +71,7 @@ export function get_user_group_from_name(name: string): UserGroup | undefined {
} }
export function get_realm_user_groups(): UserGroup[] { export function get_realm_user_groups(): UserGroup[] {
const user_groups = Array.from(user_group_by_id_dict.values()).sort((a, b) => a.id - b.id); return Array.from(user_group_by_id_dict.values()).sort((a, b) => a.id - b.id);
return user_groups.filter((group) => !group.is_system_group);
} }
export function is_member_of(user_group_id: number, user_id: number): boolean { export function is_member_of(user_group_id: number, user_id: number): boolean {