From: willcast Date: Tue, 25 Nov 2003 16:37:59 +0000 (+0000) Subject: - Student can't edit their own entries solved. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d6bbfb22fa9917a6e2addb8f173d6e6ce50a2ffb;p=moodle.git - Student can't edit their own entries solved. --- diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 983a36d49c..d609d331c8 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -536,7 +536,6 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$mode="",$ho if (!$entry->approved) { $return .= get_string("entryishidden","glossary"); } - $return .= glossary_print_entry_commentslink($course, $cm, $glossary, $entry,$mode,$hook,'html'); $return .= " "; @@ -546,7 +545,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$mode="",$ho $return .= " id&eid=$entry->id\"> "; } - if ($isteacher or $glossary->studentcanentry and $entry->userid == $USER->id) { + if ($isteacher or $glossary->studentcanpost and $entry->userid == $USER->id) { // only teachers can export entries so check it out if ($isteacher and !$ismainglossary and !$importedentry) { $mainglossary = get_record("glossary","mainglossary",1,"course",$course->id);