From 4c8564a9b4724d056bd7cf3aad05ac8da21cc130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20F=C3=B6rster?= Date: Fri, 19 Mar 2021 17:31:17 +0100 Subject: [PATCH] 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. --- view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view.php b/view.php index 2486b5f..fe16158 100644 --- a/view.php +++ b/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) {