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:
Sahil Batra 2021-08-07 14:38:54 +05:30 committed by Tim Abbott
parent 5f5c88a4e2
commit 6117c3824a
1 changed files with 2 additions and 1 deletions

View File

@ -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) {