[rt-commit] [svn] r617 - rt/branches/rt-3.1/lib/RT

leira at fsck.com leira at fsck.com
Wed Mar 24 16:31:55 EST 2004


Author: leira
Date: Wed Mar 24 16:31:54 2004
New Revision: 617

Modified:
   rt/branches/rt-3.1/lib/RT/Attachments_Overlay.pm
   rt/branches/rt-3.1/lib/RT/Transactions_Overlay.pm
Log:
Fixed a cut & paste error.


Modified: rt/branches/rt-3.1/lib/RT/Attachments_Overlay.pm
==============================================================================
--- rt/branches/rt-3.1/lib/RT/Attachments_Overlay.pm	(original)
+++ rt/branches/rt-3.1/lib/RT/Attachments_Overlay.pm	Wed Mar 24 16:31:54 2004
@@ -117,7 +117,7 @@
     my $Attachment = $self->SUPER::Next();
     if ((defined($Attachment)) and (ref($Attachment))) {
 	if ($Attachment->TransactionObj->__Value('Type') =~ /^Comment/ && 
-	    ($Attachment->TransactionObj->TicketObj->QueueObj->CurrentUserHasRight('ShowTicket') ||
+	    ($Attachment->TransactionObj->TicketObj->QueueObj->CurrentUserHasRight('ShowTicketComments') ||
 	     	    $Attachment->TransactionObj->TicketObj->CurrentUserHasRight('ShowTicketComments'))) {
 	    return($Attachment);
 	} elsif ($Attachment->TransactionObj->__Value('Type') !~ /^Comment/ && 

Modified: rt/branches/rt-3.1/lib/RT/Transactions_Overlay.pm
==============================================================================
--- rt/branches/rt-3.1/lib/RT/Transactions_Overlay.pm	(original)
+++ rt/branches/rt-3.1/lib/RT/Transactions_Overlay.pm	Wed Mar 24 16:31:54 2004
@@ -69,11 +69,11 @@
     my $Transaction = $self->SUPER::Next();
     if ((defined($Transaction)) and (ref($Transaction))) {
 	if ($Transaction->__Value('Type') =~ /^Comment/ && 
-	    ($Transaction->TicketObj->QueueObj->CurrentUserHasRight('ShowTicket') ||
+	    ($Transaction->TicketObj->QueueObj->CurrentUserHasRight('ShowTicketComments') ||
 	     $Transaction->TicketObj->CurrentUserHasRight('ShowTicketComments'))) {
 	    return($Transaction);
 	} elsif ($Transaction->__Value('Type') !~ /^Comment/ && 
-		 ($Transaction->TicketObj->QueueObj->CurrentUserHasRight('ShowTicket') ||
+		 ($Transaction->TicketObj->QueueObj->CurrentUserHasRight('ShowTicketComments') ||
 		  $Transaction->TicketObj->CurrentUserHasRight('ShowTicket'))) {
 	    return($Transaction);
 	}



More information about the Rt-commit mailing list