mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-12065, do not force parents to enrol in student courses
This commit is contained in:
parent
9858605e59
commit
934545eb55
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user