From 04fc63e1049d474a4cb82f3c366ca379f34f90f2 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Wed, 4 Jan 2006 03:04:01 +0000 Subject: [PATCH] fix for bug #4431 (site level forums) --- mod/forum/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 52e7216a259..8cce3fb3272 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -2583,6 +2583,7 @@ function forum_user_can_view_post($post, $course, $user=NULL){ //first of all, the user must be in this course if (!(isstudent($forumcourse->course) or isteacher($forumcourse->course) or + ($course->id == SITEID && !$CFG->forcelogin) or (isguest() && $course->guest) )){ return false; }