#55 Fixed references to capabilities from mod_certificate
This commit is contained in:
parent
5dfbad3b69
commit
0757213295
3 changed files with 3 additions and 3 deletions
2
lib.php
2
lib.php
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue