Skip to content

Commit

Permalink
Bug fixed when determining who can post into a forum when groups are …
Browse files Browse the repository at this point in the history
…used
  • Loading branch information
moodler committed Apr 12, 2004
1 parent 196ca3f commit d591b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/lib.php
Expand Up @@ -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 {
Expand Down

0 comments on commit d591b40

Please sign in to comment.