Merge pull request #29818 from openedx/ddumesnil/fix-discount-override-aa-1191

fix: Include course key when checking enabled for COURSEWARE_MFE_MILE…
This commit is contained in:
Dillon Dumesnil
2022-01-25 06:44:48 -08:00
committed by GitHub

View File

@@ -92,7 +92,7 @@ def can_show_streak_discount_coupon(user, course):
"""
# Feature needs to be enabled
if not COURSEWARE_MFE_MILESTONES_STREAK_DISCOUNT.is_enabled():
if not COURSEWARE_MFE_MILESTONES_STREAK_DISCOUNT.is_enabled(course.id):
return False
# Course end date needs to be in the future