Further fix for groups support in forum MDL-8741

This commit is contained in:
moodler
2007-03-05 01:48:13 +00:00
parent b8b21c5d2a
commit f4f655747d
+1 -1
View File
@@ -82,7 +82,7 @@
$groupmode = groupmode($course, $cm);
$currentgroup = get_and_set_current_group($course, $groupmode, $changegroup);
if ($groupmode and ($currentgroup === false) and
if ($groupmode == SEPARATEGROUPS && $course->groupmodeforce && ($currentgroup === false) &&
!has_capability('moodle/site:accessallgroups', $context)) {
notice(get_string('notingroup', 'forum'));
}