Get coursemodule so the groups checking works correctly

This commit is contained in:
moodler 2004-03-12 13:29:33 +00:00
parent 8c0f49667f
commit bded7f70b5

View File

@ -13,6 +13,10 @@
if (!$course = get_record("course", "id", $chat->course)) {
error("Could not find the course this belongs to!");
}
if (!$cm = get_coursemodule_from_instance("chat", $chat->id, $course->id)) {
error("Course Module ID was incorrect");
}
require_login($course->id);