Opps. I forgot to commit this files yesterday... :-(

This close Bug 1370
(http://moodle.org/bugs/bug.php?op=show&bugid=1370)
This commit is contained in:
stronk7 2004-05-15 17:27:50 +00:00
parent c032f72069
commit 7856dd5949
3 changed files with 12 additions and 0 deletions

View File

@ -29,6 +29,10 @@
$entriesbypage = $CFG->glossary_entbypage;
}
if ($CFG->forcelogin) {
require_login();
}
if ($course->category) {
require_login($course->id);
if (isguest()) {

View File

@ -7,6 +7,10 @@
optional_variable($eid,0);
optional_variable($displayformat,-1);
if ($CFG->forcelogin) {
require_login();
}
if (!empty($courseid)) {
$course = get_record("course", "id", $courseid);
if ($course->category) {

View File

@ -52,6 +52,10 @@
} else {
error("Must specify glossary ID or course module ID");
}
if ($CFG->forcelogin) {
require_login();
}
/// redirecting if adding a new entry
if ($tab == GLOSSARY_ADDENTRY_VIEW ) {