Commit 39a5b6eb by Carlos Andrés Rocha

Merge pull request #1035 from MITx/feature/jarv/cert-feature-flag

only check cert_status when certificates feature flag is enabled
parents 6857dae0 157c98a7
......@@ -146,7 +146,10 @@ def dashboard(request):
show_courseware_links_for = frozenset(course.id for course in courses
if has_access(request.user, course, 'load'))
cert_statuses = [certificate_status_for_student(request.user, course.id) for course in courses]
if settings.MITX_FEATURES.get('CERTIFICATES_ENABLED'):
cert_statuses = [certificate_status_for_student(request.user, course.id) for course in courses]
else:
cert_statuses = []
context = {'courses': courses,
'message': message,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment