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 08855f6 commit 92c5a2fCopy full SHA for 92c5a2f
1 file changed
InnoTrack.Application/Services/ProjectService.cs
@@ -62,6 +62,9 @@ public async Task VerifyProjectForSubmissionAsync(int projectId, int userId, Sub
62
if (team == null)
63
throw new KeyNotFoundException("Team not found.");
64
65
+ if (draft.OriginalityScore == null || draft.OriginalityScore < 60)
66
+ throw new InvalidOperationException("Project originality must be at least 60% before sending to a supervisor.");
67
+
68
var activeAcademicYear = await _unitOfWork.Repository<AcademicYear>()
69
.FindAsync(y => y.IsActive);
70
if (activeAcademicYear == null)
0 commit comments