MDL-8056 - one if statement was missed during Matt Clarkson's/Eloy's commit on 15th July 2007.

This commit is contained in:
tjhunt
2007-07-19 16:51:05 +00:00
parent 9a1dd76cfa
commit 597abe1a2c
+1 -1
View File
@@ -57,7 +57,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>");
}