[rt-users] (no subject)
Liam R. MacInnes
LMacInnes at stargate.ca
Fri Aug 24 18:36:25 EDT 2007
Anyone know how to adapt this for RT 3.6.1?
--- share/html/Elements/MyRequests.orig Wed Feb 2 00:20:40 2005
+++ share/html/Elements/MyRequests Mon Sep 18 21:37:08 2006
@@ -58,8 +58,17 @@
</&>
<%init>
my $rows = $RT::MyRequestsLength;
+my $Queues = RT::Queues->new($session{'CurrentUser'});
+$Queues->UnLimit();
+my $myQueues = "";
+while (my $queue = $Queues->Next) {
+ next unless ($queue->CurrentUserHasRight('ShowTicket'));
+ $myQueues .= " OR Queue = '" . $queue->Name . "'";
+}
+$myQueues =~ s/^ OR //g;
+
-my $Query = "Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')";
+my $Query = "Owner = 'Nobody' AND $myQueues AND ( Status = 'new' OR
Status = 'open')";
my $QueryString = '?' . $m->comp('/Elements/QueryString',
Query => $Query,
Thanks
More information about the rt-users
mailing list