Fix bug for non-transparent sondages
[cavote.git] / templates / vote.html
index cbe59f4..e3ecbfc 100644 (file)
@@ -22,7 +22,7 @@
 
   <tbody>
   {% 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 )%}
     <tr>
       <th>{% if 'user' in session and user.userid == session.user.id %}<i class="icon-user"></i>{% endif %} {{ user.username }}</th>
       {% for choice in choices %}