--- loncom/interface/lonmenu.pm 2024/11/22 22:43:54 1.558 +++ loncom/interface/lonmenu.pm 2025/01/07 22:21:56 1.560 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.558 2024/11/22 22:43:54 raeburn Exp $ +# $Id: lonmenu.pm,v 1.560 2025/01/07 22:21:56 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -615,6 +615,10 @@ sub secondary_menu { && !$env{'request.course.id'}; next if $$menuitem[4] =~ /^crsedit/ && (!$canedit && !$canvieweditor); + next if $$menuitem[4] eq 'crseditCourse' + && ($crstype eq 'Community'); + next if $$menuitem[4] eq 'crseditCommunity' + && ($crstype ne 'Community'); next if $$menuitem[4] eq 'nvgr' && ($canvgr || $ltiexc{'grades'}); next if $$menuitem[4] eq 'vgr'