By default editing teachers should see all groups even if they are in a group

This commit is contained in:
moodler 2005-04-26 08:00:56 +00:00
parent f9a2e5157f
commit 0b78f2b1bd

View file

@ -3111,7 +3111,7 @@ function get_current_group($courseid, $full=false) {
global $SESSION, $USER; global $SESSION, $USER;
if (!isset($SESSION->currentgroup[$courseid])) { if (!isset($SESSION->currentgroup[$courseid])) {
if (empty($USER->groupmember[$courseid])) { if (empty($USER->groupmember[$courseid]) or isteacheredit($courseid)) {
return 0; return 0;
} else { } else {
$SESSION->currentgroup[$courseid] = $USER->groupmember[$courseid]; $SESSION->currentgroup[$courseid] = $USER->groupmember[$courseid];