Re: [rt-users] show a new ticket tab for a special user group only

2008-05-23 Thread Benjamin Weser
Hi Dirk, thank you, your code works. Almost. ;) I had to mix it up a little bit with what I've found at the wiki (http://wiki.bestpractical.com/view/TestGroupMembership) since HasMemberRecursively() expects a Principal as parameter. For everybody with similar problems: here you can see my worki

Re: [rt-users] show a new ticket tab for a special user group only

2008-05-22 Thread Dirk Pape
Hello Ben, --Am 22. Mai 2008 18:39:12 +0200 schrieb Benjamin Weser <[EMAIL PROTECTED]>: > $RT::Logger->info("User: ", $session{'CurrentUser'}->Name); > my $groups = $session{'CurrentUser'}->UserObj->OwnGroups; > $RT::Logger->info("Count: ", $groups->Count); > while (my $group = $groups->Next){ >

Re: [rt-users] show a new ticket tab for a special user group only

2008-05-22 Thread Sam A. Hicks
I've recently discovered that for Attachments, the 'Next' method will retrieve the SECOND attachment the first time it's called, as in the following: $self->TransactionObj->Attachments->Next Maybe the same for your groups? I was going to ask the list... 1) ...if there's a better way to cycle th