[rt-users] API question

Phil Homewood pdh at bestpractical.com
Wed Jul 20 22:11:27 EDT 2005


Bjørn Skovlund Rydén wrote:
> my $groupobj = RT::Group->new();
> $groupobj->LoadUserDefinedGroup('Inhouse');
> if(!$groupobj->HasMemberRecursively($session{CurrentUser}))
> {
>   blablabla();
> }

Try something like:

my $groupobj = new RT::Group($session{'CurrentUser'});
$groupobj->LoadUserDefinedGroup('Inhouse');
if(!$groupobj->HasMemberRecursively($session{'CurrentUser'}->PrincipalObj))
{
  blablabla();
}

(off the top of my head)
-- 
>>|<< http://www.bestpractical.com/rt  -- Trouble Ticketing. Free.



More information about the rt-users mailing list