Bug fixed when determining who can post into a forum when groups are used

This commit is contained in:
moodler 2004-04-12 10:12:43 +00:00
parent 196ca3fe59
commit d591b40f51

View file

@ -1979,7 +1979,7 @@ function forum_user_can_post_discussion($forum, $currentgroup=false) {
} else if ($forum->type == "teacher") {
return isteacher($forum->course);
} else if ($currentgroup) {
return (isteacheredit($forum->course) or ismember($currentgroup));
return (isteacheredit($forum->course) or (ismember($currentgroup) and $forum->open == 2));
} else if (isteacher($forum->course)) {
return true;
} else {