MDL-12065, do not force parents to enrol in student courses

This commit is contained in:
toyomoyo 2007-11-09 01:39:34 +00:00
parent 9858605e59
commit 934545eb55

View File

@ -16,12 +16,13 @@
if (! $course = get_record("course", "id", $id)) {
error("Course id is incorrect.");
}
if (! $user = get_record("user", "id", $user)) {
error("User ID is incorrect");
}
require_login($course);
//require_login($course);
$COURSE = clone($course);
$coursecontext = get_context_instance(CONTEXT_COURSE, $id);
$personalcontext = get_context_instance(CONTEXT_USER, $user->id);