Commit ba571a89 authored by Petr Skoda's avatar Petr Skoda
Browse files

fixed regression - missing syscontext

parent 2a6dcb72
......@@ -41,6 +41,7 @@ if (!$course = $DB->get_record('course', array('id' => $courseid))) {
}
$usercontext = get_context_instance(CONTEXT_USER, $user->id);
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$baseurl = new moodle_url('/admin/roles/usersroles.php', array('userid'=>$userid, 'courseid'=>$courseid));
$PAGE->set_url($baseurl);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment