Join GitHub today
Do not show link to certificate with no template #173
There were a few possible solutions to this problem.
Sensei Certificates does create a certificate for every user who completes a course, but the "View Certificate" link does not show up on the frontend unless the certificate has a template. If a course does not have a template, but later a template is added, then the users who completed the course before it was added will get links to their certificates at that point.
With that in mind, I don't think that preventing the creation of the certificate is the right answer. Instead, I changed the "View Certificate" link in the backend table to only display when the course has a certificate template. Otherwise, the admin user is prompted to add the template in order to view the certificate.
To test, follow the instructions in #107