Assign task To User Group

I used this code available on the site that assigns the task as a team. I want to know how to modify the code or include permissions so that the group is displayed only to those affiliated with the group.
frappe/frappe/public/js/frappe/form/sidebar/assign_to.js at 7096d2460d2df686d5be901ba0b7929409a68c0d · frappe/frappe (github.com)


iwant to show only MEMbers group not all groups ?

iwant to show only MEMbers group not all groups ?
any idea

done thnx