Hiding queues per-user in the 'Quick search' list

Hello,

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?

Paul.

mailto:paulh@logicsquad.net
mailto:phoadley@maths.adelaide.edu.au

Paul A. Hoadley wrote:

Hello,

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?

SeeQueue right

Does the user belong to a global group that can see the queue?

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

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

It would be much more Perlish to say:

next unless $queue->CurrentUserHasRight(‘ShowTicket’);

-ToddOn Wed, Feb 18, 2004 at 12:13:27PM -0800, bill@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

  1. 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@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Paul A. Hoadley 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?

SeeQueue right

U has ‘No rights granted’ for this queue. The user-defined group that
U is in has ‘No rights granted’. Should this be sufficient? (NB: if
U selects L from the ‘Quick search’ list, no tickets come up as
expected. I just want L off U’s list.)

Paul.

mailto:paulh@logicsquad.net
mailto:phoadley@maths.adelaide.edu.au

U has ‘No rights granted’ for this queue. The user-defined group
that U is in has ‘No rights granted’. Should this be sufficient?
(NB: if U selects L from the ‘Quick search’ list, no tickets come up
as expected. I just want L off U’s list.)

Damn—I had ‘SeeQueue’ granted to ‘Everyone’ as a global right for
some reason. Fixed now.

Thanks for all replies.

Paul.

mailto:paulh@logicsquad.net
mailto:phoadley@maths.adelaide.edu.au