From ac52f2910bd0643a4c24a02f34674ef6f325509f Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 17 Oct 2006 05:18:52 +0000 Subject: [PATCH] merged fix for MDL-6968 --- mod/forum/lib.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index d0e91bb39a..6d52fdfea7 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -2956,11 +2956,6 @@ function forum_user_can_view_post($post, $course, $cm, $forum, $discussion, $use if (!has_capability('mod/forum:viewdiscussion', $modcontext)) { return false; } - - $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id); - if (!has_capability('moodle/course:view', $coursecontext)) { - return false; - } /// If it's a grouped discussion, make sure the user is a member if ($discussion->groupid > 0) { -- 2.39.5