Joburgess пре 5 година
родитељ
комит
44122a5119

+ 5 - 0
edu-user/edu-user-biz/src/main/java/com/keao/edu/user/service/impl/ExamRoomStudentRelationServiceImpl.java

@@ -251,6 +251,11 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
 			throw new BizException("考级项目不存在");
 		}
 
+		ExamOrganizationRelation examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(examId, selfOrganId);
+		if(Objects.isNull(examOrganizationRelation)||examOrganizationRelation.getIsAllowArrangeExam()==0){
+			throw new BizException("无权操作");
+		}
+
 		List<Integer> childOrganIds = organizationService.getChildOrganIds(selfOrganId, true);
 
 		int sendExamPlanRooms = examRoomDao.countSendExamPlanRooms(examId, childOrganIds);