Merged MDL-8741 fix from stable

This commit is contained in:
moodler 2007-03-04 07:35:29 +00:00
parent 426bcc164b
commit b5ddfa29c7

View File

@ -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) {