[rt-users] how to check user group

Daniel Wittenberg daniel-wittenberg at starken.com
Mon Mar 22 14:39:40 EST 2004


What's the proper way to initialize $self?

Thanks,
Dan

On Mon, 2004-03-22 at 12:25, Todd Chapman wrote:
> This should work:
> 
> 
> my $group = new RT::Group($RT::SystemUser);
> $group->LoadUserDefinedGroup("MyGroup");
> if ($group->HasMember($self->CurrentUser->PrincipalObj) {
>    .
>    .
>    .
> 
>  
> 
> On Mon, Mar 22, 2004 at 12:45:12PM -0600, Daniel Wittenberg wrote:
> > I added a new element to the main page that shows how many calls each
> > user has open/new, but I wanted to restrict it so only people in a
> > certain group see that.  What variables can I check to see if the
> > current user belongs to that group?  I've tried poking around the perl
> > modules but couldn't find anything that looked right.
> > 
> > Thanks,
> > Dan
> >




More information about the rt-users mailing list