From 43b49d039d7e06700da34a897b3bea3c3627aeef Mon Sep 17 00:00:00 2001 From: mattc-catalyst Date: Tue, 21 Aug 2007 03:18:19 +0000 Subject: [PATCH] MDL-10888: groupings - make 'jump to...' menu respect groupmembersonly flag --- lib/weblib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/weblib.php b/lib/weblib.php index 70cb08a803..824e9ea550 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4673,6 +4673,10 @@ function navmenu($course, $cm=NULL, $targetwindow='self') { if ($mod->section > $course->numsections) { /// Don't show excess hidden sections break; } + $mod->id = $mod->cm; + if (!groups_course_module_visible($mod)) { + continue; + } if ($mod->section > 0 and $section <> $mod->section) { $thissection = $sections[$mod->section]; -- 2.39.5