mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
"MDL-14589 added set_context to files/index.php script"
This commit is contained in:
parent
2a576f94f7
commit
93ad2d4d8c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user