Browse Source

Fixed permission check in topic template

sh4nks 10 years ago
parent
commit
9de5c0c392
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/templates/forum/topic_controls.html

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

@@ -37,7 +37,7 @@
         </button>
     </form>
 {% endif %}
-{% if current_user|can_moderate(topic) %}
+{% if current_user|can_moderate(topic.forum) %}
     {% if not topic.locked %}
         <form class="inline-form" method="post" action="{{ url_for('forum.lock_topic', topic_id=topic.id, slug=topic.slug) }}">
             <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />