Opps. 2nd try to hide lessons under 1.4. I was supposing that some new code

under 1.5 require_login() was working here too!
Bug 2733.
(http://moodle.org/bugs/bug.php?op=show&bugid=2733)
This commit is contained in:
stronk7
2005-03-12 17:54:30 +00:00
parent d04f8b6cdc
commit e137c8f3f9
+3 -1
View File
@@ -21,7 +21,7 @@
error("Course module is incorrect");
}
require_login($course->id, false, $cm);
require_login($course->id, false);
/// Print the page header
@@ -46,6 +46,8 @@
if (empty($action)) {
if (isteacher($course->id)) {
$action = 'teacherview';
} else if (!$cm->visible) {
notice(get_string("activityiscurrentlyhidden"));
} else {
$action = 'navigation';
}