[Rt-commit] r6606 - rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Fri Dec 8 23:01:21 EST 2006
Author: ruz
Date: Fri Dec 8 23:01:21 2006
New Revision: 6606
Modified:
rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/lib/RT/Ticket_Overlay.pm
Log:
* use subclause for acl restriction as following limit by type may
generate undesired results
Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/lib/RT/Ticket_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/lib/RT/Ticket_Overlay.pm Fri Dec 8 23:01:21 2006
@@ -3720,11 +3720,13 @@
# if the user may not see comments do not return them
unless ( $self->CurrentUserHasRight('ShowTicketComments') ) {
$transactions->Limit(
+ SUBCLAUSE => 'acl',
FIELD => 'Type',
OPERATOR => '!=',
VALUE => "Comment"
);
$transactions->Limit(
+ SUBCLAUSE => 'acl',
FIELD => 'Type',
OPERATOR => '!=',
VALUE => "CommentEmailRecord",
More information about the Rt-commit
mailing list