Allow managers to download certificates (#412)

Currently, it is not possible for editing teachers
and managers to download certificates for users because
we only check for $canreceive.
This commit is contained in:
Toni Förster 2021-03-19 17:31:17 +01:00 committed by Mark Nelson
parent a9f83a2579
commit 350b18dda6

View file

@ -158,7 +158,7 @@ if (!$downloadown && !$downloadissue) {
}
echo $OUTPUT->footer($course);
exit();
} else if ($canreceive) { // Output to pdf.
} else if ($canreceive || $canmanage) { // Output to pdf.
// Set the userid value of who we are downloading the certificate for.
$userid = $USER->id;
if ($downloadown) {