From 1ec8b1c7ead8f449eb445e6a975eb6159c175faa Mon Sep 17 00:00:00 2001 From: Kevin Wiliarty Date: Tue, 20 Aug 2013 17:48:10 -0400 Subject: [PATCH] MDL-39942: invite only users who can post to discuss --- mod/forum/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 7696f0710b3..2bad212a5c8 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -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 { -- 2.11.4.GIT