mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 05:02:14 +02:00
bugfix
This commit is contained in:
parent
5b013314ed
commit
9728561a93
1 changed files with 0 additions and 4 deletions
|
@ -2,10 +2,6 @@ class Ajax::AnswerController < ApplicationController
|
||||||
def destroy
|
def destroy
|
||||||
params.require :answer
|
params.require :answer
|
||||||
|
|
||||||
unless current_user.nil?
|
|
||||||
current_user.increment! :asked_count unless params[:anonymousQuestion] == 'true'
|
|
||||||
end
|
|
||||||
|
|
||||||
answer = Answer.find(params[:answer])
|
answer = Answer.find(params[:answer])
|
||||||
|
|
||||||
unless privileged? answer.user
|
unless privileged? answer.user
|
||||||
|
|
Loading…
Reference in a new issue