Skip to content

Commit 6c0692c

Browse files
committed
SAK-47104 Assignments allow extension no longer allows student to submit (sakaiproject#10416)
Update to use returned vs grade released (cherry picked from commit 78b391e)
1 parent 7e8946e commit 6c0692c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,7 @@ public boolean canSubmit(Assignment assignment, String userId) {
23502350
// Additionally, we make sure that a Resubmission date is not set [make sure it's null],
23512351
// so that this date-switching happens ONLY under Extension-related circumstances.
23522352
if (submission.getProperties().get(AssignmentConstants.ALLOW_EXTENSION_CLOSETIME) != null
2353-
&& (BooleanUtils.toBoolean(submission.getGradeReleased()) || !BooleanUtils.toBoolean(submission.getUserSubmission()))) {
2353+
&& (submission.getReturned() || !submission.getUserSubmission())) {
23542354
Instant extensionCloseTime = Instant.ofEpochMilli(Long.parseLong(submission.getProperties().get(AssignmentConstants.ALLOW_EXTENSION_CLOSETIME)));
23552355
isBeforeAssignmentCloseDate = !currentTime.isAfter(extensionCloseTime);
23562356
}

0 commit comments

Comments
 (0)