Skip to content
Browse files

MDL-4781 forum: show discussion link when user has ability to view di…

…scussion
  • Loading branch information...
1 parent 2075186 commit 4a112ec8c5585b24a139de0867da1e2004d80f68 @mackensen mackensen committed Jul 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 mod/forum/lib.php
@@ -5673,7 +5673,7 @@ function forum_print_latest_discussions($course, $forum, $maxdiscussions=-1, $di
$link = true;
} else {
$modcontext = context_module::instance($cm->id);
- $link = forum_user_can_post($forum, $discussion, $USER, $cm, $course, $modcontext);
+ $link = forum_user_can_see_discussion($forum, $discussion, $modcontext, $USER);
}
$discussion->forum = $forum->id;

0 comments on commit 4a112ec

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