ProxyGrantingTicket are never validate

This commit is contained in:
Valentin Samir 2015-06-04 16:45:47 +02:00
parent 69935e9761
commit 60013fbfff
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class User(models.Model):
for ticket_class in ticket_classes: for ticket_class in ticket_classes:
for ticket in ticket_class.objects.filter( for ticket in ticket_class.objects.filter(
user=self, user=self,
validate=True, validate=True if ticket_class != ProxyGrantingTicket else False,
single_log_out=True single_log_out=True
): ):
async_list.append(ticket.logout(request, session)) async_list.append(ticket.logout(request, session))