merged, bug fix for #4431

This commit is contained in:
toyomoyo
2006-01-04 03:08:08 +00:00
parent e2e6b166df
commit 4d1b2016fd
+1
View File
@@ -2686,6 +2686,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;
}