brontes3d-rubycas-server 0.8.0.20091208 → 0.8.0.20100111
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/casserver/controllers.rb +6 -6
- metadata +1 -1
@@ -225,14 +225,14 @@ module CASServer::Controllers
|
|
225
225
|
tgt = CASServer::Models::TicketGrantingTicket.find_by_ticket(cookies['tgt'])
|
226
226
|
|
227
227
|
cookies.delete 'tgt'
|
228
|
-
|
229
|
-
$AUTH.each do |auth|
|
230
|
-
if auth.respond_to?(:logout)
|
231
|
-
auth.logout(tgt.extra_attributes)
|
232
|
-
end
|
233
|
-
end
|
234
228
|
|
235
229
|
if tgt
|
230
|
+
$AUTH.each do |auth|
|
231
|
+
if auth.respond_to?(:logout) && tgt
|
232
|
+
auth.logout(tgt.extra_attributes)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
236
|
CASServer::Models::TicketGrantingTicket.transaction do
|
237
237
|
$LOG.debug("Deleting Service/Proxy Tickets for '#{tgt}' for user '#{tgt.username}'")
|
238
238
|
tgt.granted_service_tickets.each do |st|
|