Permalink
Browse files

Opps. 2nd try to hide lessons under 1.4. I was supposing that some ne…

…w code

under 1.5 require_login() was working here too!
Bug 2733.
(http://moodle.org/bugs/bug.php?op=show&bugid=2733)
  • Loading branch information...
1 parent d04f8b6 commit e137c8f3f95e6656ed43cfd19c9a6047ec799361 stronk7 committed Mar 12, 2005
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/lesson/view.php
View
@@ -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';
}

0 comments on commit e137c8f

Please sign in to comment.