From: moodler Date: Fri, 16 Jan 2004 11:39:40 +0000 (+0000) Subject: Require user to login to see glossary entries (if a course is specified) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0f32a7f3f9919bee1958884008115b5c45422a48;p=moodle.git Require user to login to see glossary entries (if a course is specified) --- diff --git a/mod/glossary/showentry.php b/mod/glossary/showentry.php index 626fd0c01d..d1ad230d6c 100644 --- a/mod/glossary/showentry.php +++ b/mod/glossary/showentry.php @@ -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)");