--- loncom/interface/lonmenu.pm 2024/10/14 02:13:26 1.557 +++ 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.557 2024/10/14 02:13:26 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' @@ -2696,7 +2700,7 @@ sub utilityfunctions { ($env{'request.symb'} ne '') && ($env{'request.filename'}=~/$LONCAPA::assess_re/)) { my $canview; - foreach my $priv ('msg','vgr') { + foreach my $priv ('mgr','vgr') { $canview = &Apache::lonnet::allowed($priv,$env{'request.course.id'}); if (!$canview && $env{'request.course.sec'} ne '') { $canview =