Browse Source

Fix permission check for creating new topics

sh4nks 11 years ago
parent
commit
4364ec13bc
1 changed files with 1 additions and 2 deletions
  1. 1 2
      flaskbb/forum/views.py

+ 1 - 2
flaskbb/forum/views.py

@@ -110,8 +110,7 @@ def view_post(post_id):
 def new_topic(forum_id):
     forum = Forum.query.filter_by(id=forum_id).first()
 
-    if not check_perm(current_user, 'posttopic') or \
-        can_moderate(current_user, forum):
+    if not check_perm(current_user, 'posttopic', forum):
         flash("You do not have the permissions to create a new topic.")
         return redirect(url_for('forum.view_forum', forum_id=forum.id))