mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-27958 Added missing set_context call which would cause errors for all contexts below course
This commit is contained in:
parent
3552484b91
commit
7313ac6c7a
@ -34,6 +34,7 @@ list($context, $course, $cm) = get_context_info_array($contextid);
|
||||
/// Check login and permissions.
|
||||
require_login($course, false, $cm);
|
||||
require_capability('moodle/filter:manage', $context);
|
||||
$PAGE->set_context($context);
|
||||
|
||||
$args = array('contextid'=>$contextid);
|
||||
$baseurl = new moodle_url('/filter/manage.php', $args);
|
||||
|
Loading…
x
Reference in New Issue
Block a user