Closed rhell4 closed 6 months ago
Thanks for creating this. I agree consistency would be ideal. I just confirmed your observations with a non-editing teacher. Indeed showing them a blank page is a bug. I need to think about the solution to this for a bit.
I think this approach is correct. If they can view the report then they should be able to view the certificate, viewing the certificate isnt 'managing'.
Cherry-picked, cheers!
As stated in issue #620 there are some inconsistencies in when the download button is shown in the report and when the user can actually download that cert, so non-editing teachers can see the buttons but get sent to a blank page. I've changed it so it consistently uses the
mod/customcert:viewreport
permission for downloading certificates.If you feel like the
mod/customcert:viewreport
permission shouldn't allow a user to download certificates, I can adjust the change so that themod/customcert:manage
permission is required to display the download buttons inclasses/report_table.php
.