Skip to content

Commit d3a05af

Browse files
committed
Fix publish status
1 parent 28fc352 commit d3a05af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cadet/assessments/assessments.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ defmodule Cadet.Assessments do
306306
is_grading_published =
307307
Submission
308308
|> where(assessment_id: ^id)
309-
|> where(student_id: ^course_reg.id)
309+
|> where([s], s.student_id == ^course_reg.id or s.team_id == ^team_id)
310310
|> select([s], s.is_grading_published)
311311
|> Repo.one()
312312

0 commit comments

Comments
 (0)