MDL-39942: invite only users who can post to discuss
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user