MDL-83670 availability_group: With hidden groups, can throw warning

This commit is contained in:
sam marshall
2024-11-08 11:59:00 +00:00
parent 3f9b9363d0
commit 5bbe044927
@@ -72,7 +72,7 @@ class frontend extends \core_availability\frontend {
require_once($CFG->libdir . '/grouplib.php');
if ($courseid != $this->allgroupscourseid) {
$this->allgroups = groups_get_all_groups($courseid, 0, 0, 'g.id, g.name');
$this->allgroups = groups_get_all_groups($courseid, 0, 0, 'g.id, g.name, g.visibility');
$this->allgroupscourseid = $courseid;
}
return $this->allgroups;