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:
+3
-1
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user