Browse Source

Do not display PM if the user is a guest

sh4nks 11 years ago
parent
commit
0970410961
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/templates/forum/topic.html

+ 1 - 1
flaskbb/templates/forum/topic.html

@@ -145,7 +145,7 @@
         <tr>
             <td>
                 <span class="pull-left">
-                    {% if current_user.is_authenticated and post.user_id %}
+                    {% if current_user.is_authenticated() and post.user_id %}
                     <a href="{{ url_for('user.new_message') }}?to_user={{ post.user.username }}">PM</a>
                     {% endif %}
                     {% if post.user.website %}