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

bill at daze.net bill at daze.net
Wed Feb 18 15:13:27 EST 2004


> 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 <=>



More information about the rt-users mailing list