fix error

This commit is contained in:
邱博亞 committed 2022-03-24 11:50:16 +08:00
1 parent 93ab471abd
commit 668e38b320
1 file changed
+1 -1
+1 -1
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