[Rt-commit] r6702 - in rt/branches/3.4-RELEASE: html/SelfService

jesse at bestpractical.com jesse at bestpractical.com
Tue Jan 2 22:14:42 EST 2007


Author: jesse
Date: Tue Jan  2 22:14:39 2007
New Revision: 6702

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/html/SelfService/Display.html

Log:
 r46721 at pinglin:  jesse | 2007-01-02 22:13:53 -0500
 * Fix display of the selfservice "Display" page after create on the web. Thanks to Wilson Chow for finding the issue


Modified: rt/branches/3.4-RELEASE/html/SelfService/Display.html
==============================================================================
--- rt/branches/3.4-RELEASE/html/SelfService/Display.html	(original)
+++ rt/branches/3.4-RELEASE/html/SelfService/Display.html	Tue Jan  2 22:14:39 2007
@@ -158,16 +158,9 @@
                 Why => loc( "Couldn't load ticket '[_1]'", $id ) );
             $m->abort();
         }
-    }
 
     # }}}
 
-    unless ( $Ticket->CurrentUserHasRight('ShowTicket') ) {
-        $m->comp( 'Error.html',
-            Why => loc("No permission to display that ticket") );
-        $m->abort();
-    }
-
     my ( $code, $msg );
 
     #Update the status
@@ -205,6 +198,13 @@
     push (@results, @cfupdates);
 
     # }}}
+    }
+
+    unless ( $Ticket->CurrentUserHasRight('ShowTicket') ) {
+        $m->comp( 'Error.html',
+            Why => loc("No permission to display that ticket") );
+        $m->abort();
+    }
 
     my $Transactions = $Ticket->Transactions;
 


More information about the Rt-commit mailing list