Skip to content
Snippets Groups Projects
Unverified Commit 312a9ec1 authored by Albert (AJ) St. Aubin's avatar Albert (AJ) St. Aubin Committed by GitHub
Browse files

Merge pull request #17533 from edx/aj/LEARNER-3898

Added entitlement redeemability method to the check for fulfillable
parents 9d8c1a26 8c5e37ba
No related merge requests found
......@@ -369,7 +369,8 @@ class CourseEntitlement(TimeStampedModel):
course_uuid = get_course_uuid_for_course(course_run_key)
if course_uuid:
entitlement = entitlements.filter(course_uuid=course_uuid).first()
if is_course_run_entitlement_fulfillable(course_run_key=course_run_key, entitlement=entitlement):
if (is_course_run_entitlement_fulfillable(course_run_key=course_run_key, entitlement=entitlement) and
entitlement.is_entitlement_redeemable()):
return entitlement
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment