[rt-users] How to know which users I am in ...

Bruno Mattarollo bruno.mattarollo at rsp.com.au
Tue Jun 14 00:41:21 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

We have a small RT installation in-house and some other groups (besides
Technology) are starting to use it. At the moment we have a small HTML
fragment that displays the amounts of tickets each user in our group has
opened and closed (some sort of ranking table) ;)

This HTML fragment has a hardcoded GroupID :( (I know ... bad bad bad).
I want to show the list of users with their matching tickets for the
group that the "viewing user" is in ... So if I am in Technology and
Business for example, the list will contain all the users that are in
both groups.

In my <%INIT> block I have the following:

my $Groups = new RT::Groups($session{'CurrentUser'});
$Groups->LimitToUserDefinedGroups();

But this lists ALL the UserDefinedGroups ... How do I get *only* the
groups the CurrentUser is a member of?

Thanks in advance,

/B

- --
Bruno Mattarollo <bruno.mattarollo at rsp.com.au>
Systems Administrator - Sydney
GnuPG: 65A6 C94A 1978 9B42 6ED2 FBCE 1BD2 756B 3A80 D8FC
- ---------------------------------------------------------------
Rising Sun Pictures - [ http://www.rsp.com.au/ ]
redefining visual effects delivery
- ---------------------------------------------------------------
syd - ph +61 2 9338 6400 - fx +61 2 9338 6401
adl - ph +61 8 8400 6400 - fx +61 8 7421 6401
- ---------------------------------------------------------------
rising sun research - http://research.rsp.com.au
cineSpace color management solutions for film
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCrl/xG9J1azqA2PwRArzzAKDUFtthmYTClX96YIiuVJRID1IhbACglg3A
XoNGMO9BNbnbN86J0+bah/Q=
=vzdm
-----END PGP SIGNATURE-----



More information about the rt-users mailing list