[Bps-public-commit] r9277 - RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/NoAuth/Logout.html
ruz at bestpractical.com
ruz at bestpractical.com
Thu Oct 11 16:37:23 EDT 2007
Author: ruz
Date: Thu Oct 11 16:37:23 2007
New Revision: 9277
Modified:
RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/NoAuth/Logout.html/BeforeSessionDelete
Log:
* Default callback in the main autohandler doesn't applies to NoAuth path
Modified: RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/NoAuth/Logout.html/BeforeSessionDelete
==============================================================================
--- RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/NoAuth/Logout.html/BeforeSessionDelete (original)
+++ RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/NoAuth/Logout.html/BeforeSessionDelete Thu Oct 11 16:37:23 2007
@@ -1,3 +1,8 @@
<%INIT>
-$session{'CurrentUser'}->RemoveLocks;
+local $@;
+eval {
+ require RT::Extension::TicketLocking;
+ $session{'CurrentUser'}->UserObj->RemoveLocks;
+};
+$RT::Logger->error( $@ ) if $@;
</%INIT>
More information about the Bps-public-commit
mailing list