@@ -229,9 +238,9 @@ class AssignmentRoutes implements RoutesManager {
...
@@ -229,9 +238,9 @@ class AssignmentRoutes implements RoutesManager {
returnreq.session.sendResponse(res,StatusCodes.BAD_REQUEST,undefined,'This exercise is not a correction',DojoStatusCode.EXERCISE_CORRECTION_NOT_EXIST);
returnreq.session.sendResponse(res,StatusCodes.BAD_REQUEST,undefined,'This exercise is not a correction',DojoStatusCode.EXERCISE_CORRECTION_NOT_EXIST);
if (req.boundParams.exercise?.assignmentName!==req.boundParams.assignment?.name){
returnreq.session.sendResponse(res,StatusCodes.BAD_REQUEST,undefined,'The exercise does not belong to the assignment',DojoStatusCode.ASSIGNMENT_EXERCISE_NOT_RELATED);
}
if (!req.boundParams.exercise?.isCorrection){
returnreq.session.sendResponse(res,StatusCodes.BAD_REQUEST,undefined,'This exercise is not a correction',DojoStatusCode.EXERCISE_CORRECTION_NOT_EXIST);
}
if (SharedConfig.production){//Disable in dev env because gitlab dev group is private and we can't change visibility of sub projects