fix for bug #4431 (site level forums)

This commit is contained in:
toyomoyo
2006-01-04 03:04:01 +00:00
parent 6c533543a8
commit 04fc63e104
+1
View File
@@ -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;
}