]> git.mjollnir.org Git - moodle.git/commitdiff
Require user to login to see glossary entries (if a course is specified)
authormoodler <moodler>
Fri, 16 Jan 2004 11:39:40 +0000 (11:39 +0000)
committermoodler <moodler>
Fri, 16 Jan 2004 11:39:40 +0000 (11:39 +0000)
mod/glossary/showentry.php

index 626fd0c01d9728556c6201a4c14729b6b0eb5fb4..d1ad230d6c0d0460c7dcea7af3870fed0cb87d30 100644 (file)
@@ -7,7 +7,12 @@
     optional_variable($eid,0);
     optional_variable($displayformat,-1);
 
-    print_header();
+    if (!empty($courseid)) {
+        require_login($courseid);
+    }
+
+    print_header();    // Needs to be something here to allow linking back to the whole glossary
+
     if ( $eid ) {
         $entries = get_records_sql("select e.* from {$CFG->prefix}glossary_entries e, {$CFG->prefix}glossary g".
                                   " where (e.id = $eid)");