Fixed reference to 'mod/certificate' capability
This commit is contained in:
parent
3f4e2be973
commit
9f4492e7e9
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class mobile {
|
|||
$issues = $DB->get_records('customcert_issues', ['userid' => $USER->id, 'customcertid' => $certificate->id]);
|
||||
|
||||
$candownload = true;
|
||||
if ($certificate->requiredtime && !has_capability('mod/certificate:manage', $context)) {
|
||||
if ($certificate->requiredtime && !has_capability('mod/customcert:manage', $context)) {
|
||||
if (\mod_customcert\certificate::get_course_time($certificate->course) < ($certificate->requiredtime * 60)) {
|
||||
$candownload = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue