Commit 11449287 authored by devanshk's avatar devanshk
Browse files

removes a check that stops annotations with the same submission and problem number from being added

Showing with 0 additions and 7 deletions
......@@ -26,13 +26,6 @@ class AnnotationsController < ApplicationController
end
end
findanno = Annotation.where('submission_id = ? AND problem_id = ?', params[:submission_id] , annotation_params[:problem_id])
if !findanno.blank?
render :status => 422, :text => "bad data"
return
end
annotation = @submission.annotations.new(annotation_params)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment