MDL-10890 all require_login() in modules reviewed and fixed use of $cm

This commit is contained in:
skodak 2007-08-17 12:49:28 +00:00
parent a104debf4f
commit bb5b72244a
20 changed files with 26 additions and 21 deletions

View file

@ -18,7 +18,11 @@
error('Could not find the course this belongs to!');
}
require_login($course->id);
if (!$cm = get_coursemodule_from_instance('chat', $chat->id, $course->id)) {
error('Course Module ID was incorrect');
}
require_login($course->id, false, $cm);
if (isguest()) {
error('Guest does not have access to chat rooms');