mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
By default editing teachers should see all groups even if they are in a group
This commit is contained in:
parent
f9a2e5157f
commit
0b78f2b1bd
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue