[Rt-commit] r4004 - in rtir/branches/1.9-EXPERIMENTAL: . html/RTIR
ruz at bestpractical.com
ruz at bestpractical.com
Mon Oct 31 10:51:30 EST 2005
Author: ruz
Date: Mon Oct 31 10:51:30 2005
New Revision: 4004
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Display.html
Log:
r221 at cubic-pc: cubic | 2005-10-31 18:50:54 +0300
r199 at cubic-pc: cubic | 2005-10-20 16:27:26 +0400
* oops, wrong LoadTicket call
Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Display.html
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Display.html (original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Display.html Mon Oct 31 10:51:30 2005
@@ -194,7 +194,6 @@
}
if ( $id && $id eq 'new' ) {
- $Ticket = LoadTicket($id);
unless ($QueueObj->CurrentUserHasRight('CreateTicket')) {
Abort('You have no permission to create tickets in that queue.');
}
@@ -202,10 +201,12 @@
%ARGS
);
delete $session{'Attachments'};
+
unless ($Ticket->CurrentUserHasRight('ShowTicket')) {
Abort("No permission to view newly created ticket #".$Ticket->id.".");
- $ARGS{'id'} = $id = $Ticket->Id;
}
+
+ $ARGS{'id'} = $id = $Ticket->Id;
} elsif( $id ) {
unless ($Ticket->CurrentUserHasRight('ShowTicket')) {
Abort("No permission to view ticket");
More information about the Rt-commit
mailing list