Skip to content

Commit

Permalink
Merge pull request #1 from rhell4/port-download-capability-fix
Browse files Browse the repository at this point in the history
Issue mdjnelson#620: use viewreport cap for downloading student certs
  • Loading branch information
Peterburnett authored Jun 28, 2024
2 parents db868f7 + 53d586a commit eac38b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
}
echo $OUTPUT->footer($course);
exit();
} else if ($canreceive || $canmanage) { // Output to pdf.
} else if ($canreceive || $canviewreport) { // Output to pdf.
// Set the userid value of who we are downloading the certificate for.
$userid = $USER->id;
if ($downloadown) {
Expand Down

0 comments on commit eac38b2

Please sign in to comment.