bugfix
This commit is contained in:
parent
5b013314ed
commit
9728561a93
|
@ -2,10 +2,6 @@ class Ajax::AnswerController < ApplicationController
|
|||
def destroy
|
||||
params.require :answer
|
||||
|
||||
unless current_user.nil?
|
||||
current_user.increment! :asked_count unless params[:anonymousQuestion] == 'true'
|
||||
end
|
||||
|
||||
answer = Answer.find(params[:answer])
|
||||
|
||||
unless privileged? answer.user
|
||||
|
|
Loading…
Reference in New Issue