Skip to content

Commit

Permalink
MDL-39942: invite only users who can post to discuss
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiliarty committed Jan 28, 2014
1 parent 9788e26 commit 1ec8b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3561,7 +3561,7 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
$output .= html_writer::tag('div', implode(' | ', $commandhtml), array('class'=>'commands'));

// Output link to post if required
if ($link) {
if ($link && forum_user_can_post($forum, $discussion, $USER, $cm, $course, $modcontext)) {
if ($post->replies == 1) {
$replystring = get_string('repliesone', 'forum', $post->replies);
} else {
Expand Down

0 comments on commit 1ec8b1c

Please sign in to comment.