Skip to content
Snippets Groups Projects
Commit 9e43621e authored by srosse's avatar srosse
Browse files

OO-5201: prevent concurrently ending a test by user and time limit

parent 049eee43
No related branches found
No related tags found
No related merge requests found
...@@ -1468,7 +1468,12 @@ public class AssessmentTestDisplayController extends BasicController implements ...@@ -1468,7 +1468,12 @@ public class AssessmentTestDisplayController extends BasicController implements
//public CandidateSession endCurrentTestPart(final CandidateSessionContext candidateSessionContext) //public CandidateSession endCurrentTestPart(final CandidateSessionContext candidateSessionContext)
private void processEndTestPart(UserRequest ureq) { private void processEndTestPart(UserRequest ureq) {
/* Update state */ if(testSessionController.getCurrentTestPart() == null && testSessionController.getTestSessionState().isEnded()) {
// try to end an already ended test
return;
}
/* Update state */
final Date requestTimestamp = ureq.getRequestTimestamp(); final Date requestTimestamp = ureq.getRequestTimestamp();
testSessionController.endCurrentTestPart(requestTimestamp); testSessionController.endCurrentTestPart(requestTimestamp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment