FIx the header too by requiring login to the course

This commit is contained in:
moodler 2006-10-01 09:31:49 +00:00
parent 1a5a5b0e04
commit 2fdcf5e360

View File

@ -6,8 +6,6 @@
$id = required_param('id',PARAM_INT); // Week ID
require_login();
if (! $section = get_record("course_sections", "id", $id)) {
error("Course section is incorrect");
}
@ -16,6 +14,8 @@
error("Could not find the course!");
}
require_login($course->id);
require_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id));
/// If data submitted, then process and store.