Skip to content

Commit

Permalink
If course groupmode is not forced, then we allow groups to mingle in …
Browse files Browse the repository at this point in the history
…forums. MDL-8741
  • Loading branch information
moodler committed Mar 4, 2007
1 parent 0af074a commit 7252b58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/forum/discuss.php
Expand Up @@ -169,7 +169,8 @@
$groupmode = groupmode($course, $cm);


if ($groupmode and !has_capability('moodle/site:accessallgroups', $modcontext)) { // Groups must be kept separate
if ($groupmode && $course->groupmodeforce && !has_capability('moodle/site:accessallgroups', $modcontext)) {
// Groups must be kept separate
//change this to ismember
$mygroupid = mygroupid($course->id); //only useful if 0, otherwise it's an array now
if ($groupmode == SEPARATEGROUPS) {
Expand Down

0 comments on commit 7252b58

Please sign in to comment.