Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pluginfile.php
Original file line number Diff line number Diff line change
@@ -461,6 +461,11 @@
if (!plugin_supports('mod', $modname, FEATURE_MOD_INTRO, true)) {
send_file_not_found();
}
if (!$cm = get_coursemodule_from_instance($modname, $cminfo->instance, $course->id)) {
send_file_not_found();
}
require_course_login($course, true, $cm);

if (!$cminfo->uservisible) {
send_file_not_found();
}

0 comments on commit 57956cc

Please sign in to comment.