Commit 71ed95d2421330489574bbebc92cd7488edf216a
1 parent
619223c6
Exists in
master
and in
28 other branches
Do not check captcha answer for comments of logged users
(ActionItem2075)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
| ... | ... | @@ -119,7 +119,7 @@ class ContentViewerController < ApplicationController |
| 119 | 119 | def add_comment |
| 120 | 120 | @comment.author = user if logged_in? |
| 121 | 121 | @comment.article = @page |
| 122 | - if (@comment.reply_of_id || verify_recaptcha(:model => @comment, :message => _('Please type the words correctly'))) && @comment.save | |
| 122 | + if (logged_in? || @comment.reply_of_id || verify_recaptcha(:model => @comment, :message => _('Please type the words correctly'))) && @comment.save | |
| 123 | 123 | @page.touch |
| 124 | 124 | @comment = nil # clear the comment form |
| 125 | 125 | redirect_to :action => 'view_page', :profile => params[:profile], :page => @page.explode_path, :view => params[:view] | ... | ... |