[Rt-commit] r6849 - in rt/branches/3.7-EXPERIMENTAL-RTIR-2.2:
html/SelfService
ruz at bestpractical.com
ruz at bestpractical.com
Fri Jan 26 13:57:19 EST 2007
Author: ruz
Date: Fri Jan 26 13:57:19 2007
New Revision: 6849
Modified:
rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/ (props changed)
rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/SelfService/Display.html
Log:
r4344 at cubic-pc (orig r6703): jesse | 2007-01-03 06:30:46 +0300
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.7-EXPERIMENTAL-RTIR-2.2/html/SelfService/Display.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/SelfService/Display.html (original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/SelfService/Display.html Fri Jan 26 13:57:19 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 );
@@ -198,8 +189,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