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 28, 2024
1 parent d2bdd9e commit 320292d
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 320292d

Please sign in to comment.