Skip to content

Commit

Permalink
Merge fix from stable
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Apr 13, 2005
1 parent c3a69c9 commit 63e20b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/forum/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@

if ($cm = get_coursemodule_from_instance("forum", $forum->id, $course->id)) {
if (groupmode($course, $cm) and !isteacheredit($course->id)) { // Make sure user can post here
if (mygroupid($course->id) != $discussion->groupid) {
$mygroupid = mygroupid($course->id);
if (!((empty($mygroupid) and $discussion->groupid == -1) || ($mygroupid == $discussion->groupid))) {
error("Sorry, but you can not post in this discussion.");
}
}
Expand Down

0 comments on commit 63e20b8

Please sign in to comment.