[Rt-commit] r6703 - in rt/branches/3.6-RELEASE: .

jesse at bestpractical.com jesse at bestpractical.com
Tue Jan 2 22:30:46 EST 2007


Author: jesse
Date: Tue Jan  2 22:30:46 2007
New Revision: 6703

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

Log:
 r46723 at pinglin:  jesse | 2007-01-02 22:30:09 -0500
 * Forward port the fix from 3.4 that lets users create tickets with custom field values in SelfService


Modified: rt/branches/3.6-RELEASE/html/SelfService/Display.html
==============================================================================
--- rt/branches/3.6-RELEASE/html/SelfService/Display.html	(original)
+++ rt/branches/3.6-RELEASE/html/SelfService/Display.html	Tue Jan  2 22:30:46 2007
@@ -158,15 +158,6 @@
                 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 );
 
@@ -207,8 +198,16 @@
 
     # }}}
 
+    }
+
     # This code does automatic redirection if any updates happen.
 
+    unless ( $Ticket->CurrentUserHasRight('ShowTicket') ) {
+        $m->comp( 'Error.html',
+            Why => loc("No permission to display that ticket") );
+        $m->abort();
+    }
+
     if (@results) {
         # We've done something, so we need to clear the decks to avoid
         # resubmission on refresh.


More information about the Rt-commit mailing list