mirror of https://github.com/zulip/zulip.git
user groups: Hide system user groups temporarily from UI.
We hide the system groups from the typeaheads and the list of user groups in settings page temporarily.
This commit is contained in:
parent
5f5c88a4e2
commit
6117c3824a
|
@ -55,7 +55,8 @@ export function get_user_group_from_name(name) {
|
|||
}
|
||||
|
||||
export function get_realm_user_groups() {
|
||||
return Array.from(user_group_by_id_dict.values()).sort((a, b) => a.id - b.id);
|
||||
const user_groups = 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, user_id) {
|
||||
|
|
Loading…
Reference in New Issue