]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8056 - one if statement was missed during Matt Clarkson's/Eloy's commit on 15th...
authortjhunt <tjhunt>
Thu, 19 Jul 2007 16:51:17 +0000 (16:51 +0000)
committertjhunt <tjhunt>
Thu, 19 Jul 2007 16:51:17 +0000 (16:51 +0000)
mod/glossary/comments.php

index ffdaa34f2db40147ea5ed99197e92ad947d7a52c..271d13eee44e4a3210edfd7d04092eb897d2ec8b 100644 (file)
@@ -62,7 +62,7 @@
 
     print_heading(format_string(get_string('commentson','glossary')." <b>\"$entry->concept\"</b>"));
 
-    if ($glossary->allowcomments || has_capability('mod/glossary:managecomments', $context)) {
+    if (has_capability('mod/glossary:comment', $context) and $glossary->allowcomments) {
         print_heading("<a href=\"comment.php?action=add&amp;eid=$entry->id\">$straddcomment <img title=\"$straddcomment\" src=\"comment.gif\" class=\"iconsmall\" alt=\"$straddcomment\" /></a>");
     }