Merged MDL-8741 fix from stable
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user