[Bps-public-commit] r9278 - RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/NoAuth/Logout.html
ruz at bestpractical.com
ruz at bestpractical.com
Thu Oct 11 16:44:16 EDT 2007
Author: ruz
Date: Thu Oct 11 16:44:15 2007
New Revision: 9278
Modified:
RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/NoAuth/Logout.html/BeforeSessionDelete
Log:
* remove if CurrentUser in the session hash has no id or
if there is no CurrentUser entry at all.
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:44:15 2007
@@ -1,8 +1,11 @@
<%INIT>
+return unless $session{'CurrentUser'} && $session{'CurrentUser'}->id;
+
local $@;
eval {
require RT::Extension::TicketLocking;
- $session{'CurrentUser'}->UserObj->RemoveLocks;
+ $session{'CurrentUser'}->RemoveLocks;
};
$RT::Logger->error( $@ ) if $@;
+return;
</%INIT>
More information about the Bps-public-commit
mailing list