ProxyGrantingTicket are never validate

This commit is contained in:
Valentin Samir 2015-06-04 16:45:47 +02:00
parent 69935e9761
commit 60013fbfff

View File

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