Don't show certificate on profile if no active config.

Stop showing certificate information on profile page if there is no
active certificate configuration.

PROD-1200
This commit is contained in:
Waheed Ahmed
2020-01-28 19:43:06 +05:00
parent d98ce06354
commit 442da4a7fe
5 changed files with 34 additions and 2 deletions

View File

@@ -1136,7 +1136,7 @@ def _downloadable_certificate_message(course, cert_downloadable_status):
course_id=course.id, uuid=cert_downloadable_status['uuid']
)
)
elif not cert_downloadable_status['download_url']:
elif not cert_downloadable_status['is_pdf_certificate']:
return GENERATING_CERT_DATA
return _downloadable_cert_data(download_url=cert_downloadable_status['download_url'])