Skip to content

Commit

Permalink
MDL-12065, do not force parents to enrol in student courses
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Nov 9, 2007
1 parent 9858605 commit 934545e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions course/user.php
Expand Up @@ -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);
Expand Down

0 comments on commit 934545e

Please sign in to comment.