Skip to content

Commit

Permalink
fix: ensure we can get the report url for moss reports
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Jan 7, 2024
1 parent 984524f commit 582d13a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/api/entities/task_definition_entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def staff?(my_role)
task_definition.tutorial_stream.abbreviation unless task_definition.tutorial_stream.nil?
end
expose :plagiarism_checks, if: ->(unit, options) { staff?(options[:my_role]) }
expose :plagiarism_report_url, if: ->(unit, options) { staff?(options[:my_role]) }
expose :plagiarism_warn_pct, if: ->(unit, options) { staff?(options[:my_role]) }
expose :restrict_status_updates, if: ->(unit, options) { staff?(options[:my_role]) }
expose :group_set_id
Expand Down
2 changes: 1 addition & 1 deletion app/api/similarity/task_similarity_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class TaskSimilarityApi < Grape::API
error!({ error: "Similarity report is not yet ready to be viewed for this submission" }, 404)
end
else
error!({ error: "No details to download for task '#{params[:id]}'" }, 404)
similarity.plagiarism_report_url
end
end
end
Expand Down

0 comments on commit 582d13a

Please sign in to comment.