"MDL-14589 added set_context to files/index.php script"

This commit is contained in:
Dongsheng Cai 2010-07-26 03:49:44 +00:00
parent 2a576f94f7
commit 93ad2d4d8c

View File

@ -56,6 +56,7 @@ if ($filename === '') {
}
list($context, $course, $cm) = get_context_info_array($contextid);
$PAGE->set_context($context);
require_login($course, false, $cm);
require_capability('moodle/course:managefiles', $context);