# POST
def assign
- @review = Review.find (params[:id])
+ @review = Review.find(params[:id])
unless current_user
render :text => "<b>Cannot edit the review</b> : access denied."
return
# GET
def comment_form
- @review = Review.find (params[:id])
+ @review = Review.find(params[:id])
if !params[:comment_id].blank? && @review
@comment = @review.comments.find(params[:comment_id])
end
# POST
def save_comment
- @review = Review.find (params[:id])
+ @review = Review.find(params[:id])
unless current_user
render :text => "<b>Cannot create the comment</b> : access denied."
return
# POST
def flag_as_false_positive
- @review = Review.find (params[:id])
+ @review = Review.find(params[:id])
unless current_user
render :text => "<b>Cannot create the comment</b> : access denied."
return
# POST
def delete_comment
- @review = Review.find (params[:id])
+ @review = Review.find(params[:id])
unless current_user
render :text => "<b>Cannot delete the comment</b> : access denied."
return