Permalink
Browse files

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

  • Loading branch information...
1 parent b88bb98 commit 414fcf2584f15141d98a835efe0014b66d83cb52 @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
@@ -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 {

0 comments on commit 414fcf2

Please sign in to comment.