We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28fc352 commit d3a05afCopy full SHA for d3a05af
lib/cadet/assessments/assessments.ex
@@ -306,7 +306,7 @@ defmodule Cadet.Assessments do
306
is_grading_published =
307
Submission
308
|> where(assessment_id: ^id)
309
- |> where(student_id: ^course_reg.id)
+ |> where([s], s.student_id == ^course_reg.id or s.team_id == ^team_id)
310
|> select([s], s.is_grading_published)
311
|> Repo.one()
312
0 commit comments