Skip to content
Browse files

MDL-39942: invite only users who can post to discuss

  • Loading branch information...
1 parent 953239d commit 5fe7d182d80ae81d10af100ae992c8c858d828ba @kwiliarty kwiliarty committed Aug 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 mod/forum/lib.php
@@ -3519,7 +3519,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 {

0 comments on commit 5fe7d18

Please sign in to comment.
Something went wrong with that request. Please try again.