Permalink
Browse files

added permission check with reply form on thread

  • Loading branch information...
1 parent 417ee53 commit 4eaec739a122c671120e0215424433c207cddab5 @brosner brosner committed Dec 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 agora/views.py
View
@@ -79,7 +79,7 @@ def forum_thread(request, thread_id):
can_create_reply = request.user.has_perms("agora.add_forumreply", obj=thread)
- if request.user.is_authenticated() and not thread.closed:
+ if request.user.is_authenticated() and not thread.closed and can_create_reply:
if request.method == "POST":
reply_form = ReplyForm(request.POST)

0 comments on commit 4eaec73

Please sign in to comment.