From: Rogdham Date: Thu, 30 Aug 2012 16:29:28 +0000 (+0200) Subject: Fix bug for non-transparent sondages X-Git-Url: http://git.cyclocoop.org/?p=cavote.git;a=commitdiff_plain;h=fba72f81b54bc34827d984d866b90ebbdf453caf 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. --- 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 %}