[rt-devel] limit queues by right ModifyTicket also for SuperUser

Christian Loos cloos at netcologne.de
Tue May 19 08:17:47 EDT 2015


our users have ShowQueue (together with ShowTicket) on many queues and
ModifyTicket on few queues. This results in a long list of queues in the
" Quick search" element.

To help our users to have a better overview of the queues they manage
(where they have ModifyTicket), I wanted to create a MyQueues element
which only list the queues where the users have the ModifyTicket right.

For normal users this is easy by using the
/Elements/QueueSummaryByStatus with "sub {
$_->CurrentUserHasRight('ModifyTicket') }" as queue_filter.

Sadly this doesn't work for SuperUser as they have ModifyTicket on all
queues by the SuperUser right [1].

Is there any way to limit the queues also for SuperUser to ones that
they have the ModifyTicket right?


[1] https://github.com/bestpractical/rt/blob/stable/lib/RT/Principal.pm#L312

More information about the rt-devel mailing list