diff --git a/csm_web/scheduler/models.py b/csm_web/scheduler/models.py index c1779424..8722694a 100644 --- a/csm_web/scheduler/models.py +++ b/csm_web/scheduler/models.py @@ -60,7 +60,7 @@ def can_enroll_in_course(self, course, bypass_enrollment_time=False): is_associated = ( self.student_set.filter(active=True, section__mentor__course=course).count() or self.mentor_set.filter(section__mentor__course=course).count() - or self.id not in course.coordinator_set.values_list("user", flat=True) + or self.id in course.coordinator_set.values_list("user", flat=True) ) if bypass_enrollment_time: return not is_associated