fix error

This commit is contained in:
邱博亞 2022-03-24 11:50:16 +08:00
parent 93ab471abd
commit 668e38b320
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class AsksController < ApplicationController
end
end
end
flag =(gotcha_valid? || !AskSetting.first.default_setting['recaptcha']) && @ask_question.save
flag =(!ask_setting.default_setting['recaptcha'] || gotcha_valid?) && @ask_question.save
if flag
all_to_save.each do |to_save|
flag = flag && to_save[1].save