[Rt-commit] r5547 - in RT-Extension-TimeWorked: . lib/RT/Extension
alexmv at bestpractical.com
alexmv at bestpractical.com
Mon Jul 10 20:33:57 EDT 2006
Author: alexmv
Date: Mon Jul 10 20:33:55 2006
New Revision: 5547
Modified:
RT-Extension-TimeWorked/ (props changed)
RT-Extension-TimeWorked/html/Reports/TimeWorked/index.html
RT-Extension-TimeWorked/lib/RT/Extension/TimeWorked.pm
Log:
r15160 at zoq-fot-pik: chmrr | 2006-07-10 16:04:26 -0400
* Only show comments for privileged users
Modified: RT-Extension-TimeWorked/html/Reports/TimeWorked/index.html
==============================================================================
--- RT-Extension-TimeWorked/html/Reports/TimeWorked/index.html (original)
+++ RT-Extension-TimeWorked/html/Reports/TimeWorked/index.html Mon Jul 10 20:33:55 2006
@@ -307,6 +307,9 @@
die $sth->error_message unless $sth;
$user{$_->{name}}{$_->{queue}}{time} = $_->{worked} while $_ = $sth->fetchrow_hashref;
+my $priv = RT::Group->new( $session{'CurrentUser'} );
+$priv->LoadSystemInternalGroup('Privileged');
+my $priv_id = $priv->id;
$sth = $RT::Handle->SimpleQuery(<<"EOSQL");
SELECT Users.Name as name,
Tickets.Queue as queue,
@@ -314,6 +317,8 @@
FROM Tickets
JOIN Transactions ON $txnjoin
JOIN Users ON Transactions.Creator = Users.id
+ JOIN GroupMembers ON GroupMembers.MemberId = Users.id
+ AND GroupMembers.GroupId = $priv_id
JOIN Queues ON Tickets.Queue = Queues.id
WHERE Transactions.Created >= '$start'
AND Transactions.Created <= '$end'
Modified: RT-Extension-TimeWorked/lib/RT/Extension/TimeWorked.pm
==============================================================================
--- RT-Extension-TimeWorked/lib/RT/Extension/TimeWorked.pm (original)
+++ RT-Extension-TimeWorked/lib/RT/Extension/TimeWorked.pm Mon Jul 10 20:33:55 2006
@@ -1,3 +1,3 @@
package RT::Extension::TimeWorked;
-our $VERSION = '0.6';
+our $VERSION = '0.7';
More information about the Rt-commit
mailing list