Skip to content

Commit

Permalink
MDL-57597 competency: Fix serving of prior learning evidence files
Browse files Browse the repository at this point in the history
For security reasons, all files submitted by students must be disposed
as attachments, not inline contents.
  • Loading branch information
mudrd8mz authored and danpoltawski committed Mar 10, 2017
1 parent 228637f commit 6f88c26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions competency/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,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;
}
}

Expand Down

0 comments on commit 6f88c26

Please sign in to comment.