[Rt-commit] r2474 - rt/branches/3.4-RELEASE/lib/RT

alexmv at bestpractical.com alexmv at bestpractical.com
Wed Mar 16 02:53:59 EST 2005


Author: alexmv
Date: Wed Mar 16 02:53:59 2005
New Revision: 2474

Modified:
   rt/branches/3.4-RELEASE/lib/RT/Transaction_Overlay.pm
Log:
 * Users and groups can have transactions; ShowTicket isn't needed to
   see these


Modified: rt/branches/3.4-RELEASE/lib/RT/Transaction_Overlay.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/Transaction_Overlay.pm	(original)
+++ rt/branches/3.4-RELEASE/lib/RT/Transaction_Overlay.pm	Wed Mar 16 02:53:59 2005
@@ -424,7 +424,7 @@
         }
 
         #if they ain't got rights to see, return an empty object
-        else {
+        elsif ($self->__Value('ObjectType') eq "RT::Ticket") {
             unless ( $self->CurrentUserHasRight('ShowTicket') ) {
                 return ( $self->{'attachments'} );
             }
@@ -505,7 +505,7 @@
     }
 
     #if they ain't got rights to see, don't let em
-    else {
+    elsif ($self->__Value('ObjectType') eq "RT::Ticket") {
         unless ( $self->CurrentUserHasRight('ShowTicket') ) {
             return ($self->loc("Permission Denied") );
         }
@@ -541,7 +541,7 @@
     }
 
     #if they ain't got rights to see, don't let em
-    else {
+    elsif ($self->__Value('ObjectType') eq "RT::Ticket") {
         unless ( $self->CurrentUserHasRight('ShowTicket') ) {
             return ( $self->loc("Permission Denied") );
         }
@@ -861,7 +861,7 @@
 
 
     #if they ain't got rights to see, don't let em
-    else {
+    elsif ($self->__Value('ObjectType') eq "RT::Ticket") {
         unless ( $self->CurrentUserHasRight('ShowTicket') ) {
             return (undef);
         }


More information about the Rt-commit mailing list