diff --git a/lib.php b/lib.php index 0e9270f..3879f1e 100644 --- a/lib.php +++ b/lib.php @@ -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();