if the glossary is at site-level then don't require a login

This commit is contained in:
moodler
2003-11-09 03:35:36 +00:00
parent 4403d2b89c
commit 34fb06515c
2 changed files with 10 additions and 6 deletions
+7 -5
View File
@@ -25,10 +25,12 @@
error("Course module is incorrect");
}
require_login($course->id);
if (isguest()) {
error("You must be logged to use this page.");
}
if ($course->category) {
require_login($course->id);
if (isguest()) {
error("You must be logged to use this page.");
}
}
if ( $eid ) {
$l = '';
@@ -167,4 +169,4 @@
echo '</table>';
echo '</center>';
}
?>
?>
+3 -1
View File
@@ -39,7 +39,9 @@
error("Course module is incorrect");
}
require_login($course->id);
if ($course->category) {
require_login($course->id);
}
if (!$cm->visible and !isteacher($course->id)) {
notice(get_string("activityiscurrentlyhidden"));
}