Lock Certificate of Completion Until They've Passed

LJSeiff
Community Member

I am starting a course. I don't know how to lock the certificate of completion until after they've passed the course.  Right now, students can access a blank certificate in the module. Please tell me how best to program it. thanks very much!

LJ