Skip to content

Commit

Permalink
Better fix for #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Aug 30, 2024
1 parent 1adcd6f commit e138669
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,8 @@ function format_vsf_extend_navigation_course(navigation_node $parentnode, stdCla
* @return boolean
*/
function format_vsf_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options = []) {
require_login($course, false, null, true, true);

// Make sure the filearea is one of those used by the plugin.
if ($filearea !== 'modicon' && strpos($filearea, 'modicon_') !== 0) {
send_file_not_found();
Expand Down

0 comments on commit e138669

Please sign in to comment.