From fba72f81b54bc34827d984d866b90ebbdf453caf Mon Sep 17 00:00:00 2001 From: Rogdham Date: Thu, 30 Aug 2012 18:29:28 +0200 Subject: [PATCH] Fix bug for non-transparent sondages Bug detail: when user is not logged, an exception was raised when she was looking to a non-transparent vote. --- templates/vote.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/vote.html b/templates/vote.html index cbe59f4..e3ecbfc 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -22,7 +22,7 @@ {% for user in users %} - {% if vote.is_transparent or user.userid == session.user.id %} + {% if vote.is_transparent or (session.user and user.userid == session.user.id )%} {% if 'user' in session and user.userid == session.user.id %}{% endif %} {{ user.username }} {% for choice in choices %} -- 2.20.1