mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
- students cannot add/edit/delete comments if it isn't allowed
- students can view comments if they exist - teachers bypass the commentsallowed field always (this can be useful to create glossaries with public comments from the teacher). - buttons are showed correctly. Bug 1814 (http://moodle.org/bugs/bug.php?op=show&bugid=1814) Merged from MOODLE_14_STABLE
This commit is contained in:
parent
9f106aa197
commit
944d82d4d3
3 changed files with 21 additions and 10 deletions
|
@ -59,7 +59,7 @@
|
|||
|
||||
print_heading(get_string('commentson','glossary')." <b>\"$entry->concept\"</b>");
|
||||
|
||||
if ($glossary->allowcomments) {
|
||||
if ($glossary->allowcomments || isteacher($glossary->course)) {
|
||||
print_heading("<a href=\"comment.php?id=$cm->id&eid=$entry->id\">$straddcomment</a> <img title=\"$straddcomment\" src=\"comment.gif\" height=11 width=11 border=0>");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue