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:
parent
a9f83a2579
commit
350b18dda6
1 changed files with 1 additions and 1 deletions
2
view.php
2
view.php
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue