Browse Source

Merge pull request #113 from litnimax/master

Fix for #112.
Peter Justin 10 years ago
parent
commit
0d22e8fbeb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/forum/views.py

+ 1 - 1
flaskbb/forum/views.py

@@ -156,7 +156,7 @@ def view_post(post_id):
 def new_topic(forum_id, slug=None):
     forum_instance = Forum.query.filter_by(id=forum_id).first_or_404()
 
-    if not can_post_topic(user=current_user, forum=forum):
+    if not can_post_topic(user=current_user, forum=forum_instance):
         flash(_("You do not have the permissions to create a new topic."),
               "danger")
         return redirect(forum.url)