fix for bug #4431 (site level forums)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user