Allow certification regenration for existing honor certificates

staff should be able to regenerate certificates for the students
who have already earned the certificate using honor mode

Prod-612
This commit is contained in:
adeelehsan
2019-11-05 18:30:55 +05:00
parent c1274ba765
commit 1adc01b45c
3 changed files with 29 additions and 3 deletions

View File

@@ -291,7 +291,8 @@ class XQueueCertInterface(object):
mode_is_verified = enrollment_mode in GeneratedCertificate.VERIFIED_CERTS_MODES
user_is_verified = IDVerificationService.user_is_verified(student)
cert_mode = enrollment_mode
is_eligible_for_certificate = is_whitelisted or CourseMode.is_eligible_for_certificate(enrollment_mode)
is_eligible_for_certificate = is_whitelisted or CourseMode.is_eligible_for_certificate(enrollment_mode,
cert_status)
unverified = False
# For credit mode generate verified certificate
if cert_mode in (CourseMode.CREDIT_MODE, CourseMode.MASTERS):