[rt-users] Re: Hiding queues per-user in the 'Quick search' list

Todd Chapman rt at chaka.net
Wed Feb 18 14:38:48 EST 2004


It would be much more Perlish to say:

next unless $queue->CurrentUserHasRight('ShowTicket');

-Todd

On Wed, Feb 18, 2004 at 12:13:27PM -0800, bill at daze.net wrote:
> > This may be straightforward, but I cannot seem to find it in the
> > manual.  I have a user U who has no rights relating to a list L, yet L
> > appears in U's 'Quick search' list of queues on the home page.
> > Clicking on L shows a screen with zero tickets, but is there a way to
> > remove L from U's 'Quick search' list?
> 
> We didn't like that default behavior either so we added this to our
> install a long time ago.  It suppresses queues from the quick search list
> that the user does not have ShowTicket rights for.
> 
> 
> 1) Copy the standard QuickSearch element to your local area
> 
> cp share/html/Elements/Quicksearch local/html/Elements/Quicksearch
> 
> 
> 2) Now editing your local copy, add the "next if" line shown below after
> the while:
> 
> 
> while (my $queue = $Queues->Next) {
> 
>      next if !$queue->CurrentUserHasRight('ShowTicket');
> 
> 
> Note that this was done on RT 3.0.0 through 3.0.4.  We haven't installed
> later versions yet and it's possible the QuickSearch code may have
> changed.  Probably not, but it's possible.
> 
> 
> 
> --
>  <=> ASK and you shall receive <=>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.bestpractical.com
> http://lists.bestpractical.com/mailman/listinfo/rt-users
> 
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm



More information about the rt-users mailing list