|
@@ -72,7 +72,7 @@ public class PaperController extends BaseSearchController{
|
|
|
if (!isAdmin && !isExamOwner) {
|
|
|
boolean isExamOwnerOrParticipant = examLogic.checkTaskViewPermission(userId, examId);
|
|
|
if (exam.getStatus().equals(Exam.STATUS_UPCOMING)) {
|
|
|
- throw new UnauthenticatedException("forbidden");
|
|
|
+ return new PaperVO();
|
|
|
} else if (!isExamOwnerOrParticipant) {
|
|
|
throw new UnauthenticatedException("forbidden");
|
|
|
}
|