MDL-57597 competency: Fix serving of prior learning evidence files
For security reasons, all files submitted by students must be disposed as attachments, not inline contents.
This commit is contained in:
committed by
Dan Poltawski
parent
7ea1dd1580
commit
3fe3805d79
@@ -288,6 +288,7 @@ function core_competency_pluginfile($course, $cm, $context, $filearea, $args, $f
|
||||
if ($filearea == 'userevidence' && $context->contextlevel == CONTEXT_USER) {
|
||||
if (user_evidence::can_read_user($context->instanceid)) {
|
||||
$file = $fs->get_file($context->id, 'core_competency', $filearea, $itemid, $filepath, $filename);
|
||||
$forcedownload = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user