Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

oops, silly. verifying captcha even when logged in will not work.

  • Loading branch information...
commit fe1353711acc1602808334e7e433736977420260 1 parent 1ae009b
Bruno Bornsztein authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/comments_controller.rb
View
2  app/controllers/comments_controller.rb
@@ -90,7 +90,7 @@ def create
@comment.author_ip = request.remote_ip #save the ip address for everyone, just because
respond_to do |format|
- if verify_recaptcha(@comment) && @comment.save
+ if (logged_in? || verify_recaptcha(@comment)) && @comment.save
@commentable.add_comment @comment
UserNotifier.deliver_comment_notice(@comment) if @comment.should_notify_recipient?
@comment.notify_previous_commenters
Please sign in to comment.
Something went wrong with that request. Please try again.