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