]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for separate groups / all groups view MDL-8300
authormoodler <moodler>
Tue, 6 Mar 2007 04:29:41 +0000 (04:29 +0000)
committermoodler <moodler>
Tue, 6 Mar 2007 04:29:41 +0000 (04:29 +0000)
group/lib/legacylib.php

index aaea991f55e50fc259e0c54a12c99efee7e147dc..f434d78f581dfabb3b9dab0287fbf1b73812de6e 100644 (file)
@@ -277,7 +277,7 @@ function get_and_set_current_group($course, $groupmode, $groupid=-1) {
     } else { // When groupid = 0 it means show ALL groups
         // this is changed, non editting teacher needs access to group 0 as well,
         // for viewing work in visible groups (need to set current group for multiple pages)
-        if (has_capability('moodle/site:accessallgroups', $context) AND ($groupmode == VISIBLEGROUPS)) { // Sets current default group
+        if (has_capability('moodle/site:accessallgroups', $context)) { // Sets current default group
             $currentgroupid = set_current_group($course->id, 0);
 
         } elseif ($groupmode == VISIBLEGROUPS) {  // All groups are visible