Restrict userselect.html.tmpl to Group editbugs?

jimderrico at gmail.com jimderrico at gmail.com
Fri May 16 20:18:33 UTC 2008


Hi,
Running 3.0 on Linux RH Enterprise 4
I am looking at global/userselect.html.tmpl and I would like to limit
the choices for assign_to (and maybe cc) to just users in the editbugs
Group. It currently lists all users for assign_to with:
[% FOREACH tmpuser = user.get_userlist %]

I could either use a way to generate a different list, something like
user.get_grouplist(editbugs)
or some way to filter the full user list further down with something
like [% IF tmpuser.in_group('editbugs') %]

I'm not sure what user.get_userlist returns (other than a hash) and/or
how to apply it to find out if the value in the FOREACH loop is in a
particular Group.

Any thoughts?
Thanks,
jim
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list