corrected another enrollment edge case

This commit is contained in:
Albert St. Aubin
2018-03-09 09:48:33 -05:00
parent 7acff0a39e
commit bd9fedb27b
3 changed files with 33 additions and 2 deletions

View File

@@ -393,7 +393,7 @@ def get_fulfillable_course_runs_for_entitlement(entitlement, course_runs):
user=entitlement.user,
course_id=course_id
)
is_enrolled_in_mode = user_enrollment_mode == entitlement.mode
is_enrolled_in_mode = is_active and (user_enrollment_mode == entitlement.mode)
if is_course_run_entitlement_fulfillable(course_id, entitlement, search_time):
if (is_enrolled_in_mode and
entitlement.enrollment_course_run and