Browse Source

Merge branch 'bug-transparent' of git://git.rogdham.net/cavote

Julien Rabier 12 years ago
parent
commit
60271c5579
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/vote.html

+ 1 - 1
templates/vote.html

@@ -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 %}