Merge branch 'bug-transparent' of git://git.rogdham.net/cavote
authorJulien Rabier <taziden@flexiden.org>
Thu, 30 Aug 2012 18:04:09 +0000 (20:04 +0200)
committerJulien Rabier <taziden@flexiden.org>
Thu, 30 Aug 2012 18:04:09 +0000 (20:04 +0200)
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 %}