mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-20663 Added sesskey confirmation
This commit is contained in:
parent
0c68d91621
commit
21fafca9c8
@ -35,6 +35,7 @@ if (!$course = $DB->get_record('course', array('id' => $courseid))) {
|
||||
}
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
require_login($course);
|
||||
confirm_sesskey();
|
||||
|
||||
switch ($action) {
|
||||
case 'update':
|
||||
|
Loading…
x
Reference in New Issue
Block a user