mirror of https://github.com/zulip/zulip.git
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:
parent
9de3b2f4fd
commit
1543775ac6
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue