fix: Include course key when checking enabled for COURSEWARE_MFE_MILESTONES_STREAK_DISCOUNT

AA-1191
This commit is contained in:
Dillon Dumesnil
2022-01-25 09:21:10 -05:00
parent dddcadb706
commit e05122a437

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