[Rt-commit] r6712 - in rt/branches/3.6-RELEASE: .
jesse at bestpractical.com
jesse at bestpractical.com
Mon Jan 8 15:55:57 EST 2007
Author: jesse
Date: Mon Jan 8 15:55:52 2007
New Revision: 6712
Modified:
rt/branches/3.6-RELEASE/ (props changed)
rt/branches/3.6-RELEASE/html/autohandler
Log:
r46859 at pinglin: jesse | 2007-01-08 15:55:35 -0500
The autohandler should *redirect* unprivileged users from
Ticket/Display.html to the Self-Service interface. Current code displays
SS page under non-SS URL, which causes the "Reply" links to go to
Ticket/Update.html, which in turn displays the SS home page.
-David Chandek-Stark <david.chandek.stark at duke.edu>
Modified: rt/branches/3.6-RELEASE/html/autohandler
==============================================================================
--- rt/branches/3.6-RELEASE/html/autohandler (original)
+++ rt/branches/3.6-RELEASE/html/autohandler Mon Jan 8 15:55:52 2007
@@ -274,15 +274,12 @@
if ( $m->request_comp->path =~ '^(/+)Ticket/Display.html'
and $ARGS{'id'} )
{
- $m->comp( "/SelfService/Display.html", %ARGS );
- $m->comp( "/Elements/Footer", %ARGS );
- $m->abort();
+ RT::Interface::Web::Redirect($RT::WebURL."SelfService/Display.html?id=".$ARGS{'id'});
}
# otherwise, drop the user at the SelfService default page
elsif ( $m->base_comp->path !~ '^(/+)SelfService/' ) {
- $m->comp('/SelfService/index.html');
- $m->abort();
+ RT::Interface::Web::Redirect($RT::WebURL."SelfService/");
}
else {
$m->comp( { base_comp => $m->request_comp }, $m->fetch_next, %ARGS);
More information about the Rt-commit
mailing list