brontes3d-rubycas-server 0.8.0.20091208 → 0.8.0.20100111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/casserver/controllers.rb +6 -6
  2. 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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brontes3d-rubycas-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.20091208
4
+ version: 0.8.0.20100111
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zukowski