mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
Martin pointed out that only editing teachers get to see all the groups.
This commit is contained in:
parent
c40aeb21f8
commit
ef3ae69ebd
@ -1085,8 +1085,8 @@ function calendar_set_filters(&$courses, &$group, &$user, $defaultcourses = NULL
|
|||||||
|
|
||||||
// For each course...
|
// For each course...
|
||||||
foreach($groupcourses as $courseid => $dummy) {
|
foreach($groupcourses as $courseid => $dummy) {
|
||||||
// If the user is a teacher in there,
|
// If the user is an editing teacher in there,
|
||||||
if(isteacher($courseid, $USER->id)) {
|
if(isteacheredit($courseid, $USER->id)) {
|
||||||
// Show events from all groups
|
// Show events from all groups
|
||||||
if(($grouprecords = get_groups($courseid)) !== false) {
|
if(($grouprecords = get_groups($courseid)) !== false) {
|
||||||
$grouparray = array_merge($grouparray, array_keys($grouprecords));
|
$grouparray = array_merge($grouparray, array_keys($grouprecords));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user