#55 Fixed references to capabilities from mod_certificate

This commit is contained in:
Mark Nelson 2016-11-29 13:30:16 +08:00
parent 5dfbad3b69
commit 0757213295
3 changed files with 3 additions and 3 deletions

View file

@ -234,7 +234,7 @@ function customcert_pluginfile($course, $cm, $context, $filearea, $args, $forced
if ($filearea === 'image') {
if ($context->contextlevel == CONTEXT_MODULE) {
require_login($course, false, $cm);
} else if ($context->contextlevel == CONTEXT_SYSTEM && !has_capability('mod/certificate:manage', $context)) {
} else if ($context->contextlevel == CONTEXT_SYSTEM && !has_capability('mod/customcert:manage', $context)) {
return false;
}