AcademicAuthorizationGroup.get(AcademicOperationType.STUDENT_ENROLMENTS).isMember(Authenticate.getUser());
for (final CurriculumModule curriculumModule : group.getCurriculumModulesSet()) {
if (curriculumModule.isEnrolment()) {
final Enrolment enrolment = (Enrolment) curriculumModule;
if (!considerThisEnrolmentGeneralRule(enrolment, executionSemester, alreadyHasSpecialSeasonEnrolment)) {
continue;
}
if (considerThisEnrolmentNormalEnrolments(enrolment)
|| considerThisEnrolmentPropaedeuticEnrolments(enrolment, isServices)
|| considerThisEnrolmentExtraCurricularEnrolments(enrolment, isServices)
|| considerThisEnrolmentStandaloneEnrolments(enrolment, isServices)) {
if (enrolmentsMap.get(enrolment.getCurricularCourse()) != null) {
Enrolment enrolmentMap = enrolmentsMap.get(enrolment.getCurricularCourse());
if (enrolment.getExecutionPeriod().isAfter(enrolmentMap.getExecutionPeriod())) {
enrolmentsMap.put(enrolment.getCurricularCourse(), enrolment);
}
} else {
enrolmentsMap.put(enrolment.getCurricularCourse(), enrolment);
}