Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- Student can't edit their own entries solved.

  • Loading branch information...
commit d6bbfb22fa9917a6e2addb8f173d6e6ce50a2ffb 1 parent 5322277
authored November 25, 2003

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  mod/glossary/lib.php
3  mod/glossary/lib.php
@@ -536,7 +536,6 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$mode="",$ho
536 536
     if (!$entry->approved) {
537 537
         $return .= get_string("entryishidden","glossary");
538 538
     }
539  
-
540 539
     $return .= glossary_print_entry_commentslink($course, $cm, $glossary, $entry,$mode,$hook,'html');
541 540
 
542 541
     $return .= "</font> ";
@@ -546,7 +545,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$mode="",$ho
546 545
         $return .= " <a title=\"" . get_string("addcomment","glossary") . "\" href=\"comment.php?id=$cm->id&eid=$entry->id\"><img src=\"comment.gif\" height=16 width=16 border=0></a> ";
547 546
     }
548 547
 
549  
-    if ($isteacher or $glossary->studentcanentry and $entry->userid == $USER->id) {
  548
+    if ($isteacher or $glossary->studentcanpost and $entry->userid == $USER->id) {
550 549
         // only teachers can export entries so check it out
551 550
         if ($isteacher and !$ismainglossary and !$importedentry) {
552 551
             $mainglossary = get_record("glossary","mainglossary",1,"course",$course->id);

0 notes on commit d6bbfb2

Please sign in to comment.
Something went wrong with that request. Please try again.