From 0f32a7f3f9919bee1958884008115b5c45422a48 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 16 Jan 2004 11:39:40 +0000 Subject: [PATCH] Require user to login to see glossary entries (if a course is specified) --- mod/glossary/showentry.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)"); -- 2.39.5