Merge branch 'MDL-78457-402' of https://github.com/paulholden/moodle into MOODLE_402_STABLE

This commit is contained in:
Sara Arjona
2024-04-08 16:54:54 +02:00
+3
View File
@@ -2955,6 +2955,9 @@ class global_navigation extends navigation_node {
}
} else if (count($this->extendforuser) > 0) {
$coursenode->add(get_string('participants'), null, self::TYPE_CONTAINER, get_string('participants'), 'participants');
} else if ($siteparticipantsnode = $this->rootnodes['site']->get('participants', self::TYPE_CUSTOM)) {
// The participants node was added for the site, but cannot be viewed inside the course itself, so remove.
$siteparticipantsnode->remove();
}
// Badges.