--- loncom/interface/lonmenu.pm 2024/01/01 00:53:49 1.545 +++ loncom/interface/lonmenu.pm 2024/04/18 17:53:15 1.548 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.545 2024/01/01 00:53:49 raeburn Exp $ +# $Id: lonmenu.pm,v 1.548 2024/04/18 17:53:15 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -378,6 +378,7 @@ sub primary_menu { } else { next; } + } if ($env{'request.course.id'} && $menucoll) { next if ($item->[3]) && (!$menuopts{$item->[3]}); } @@ -1307,6 +1308,17 @@ s&7&2&prt.png&Print&printout[_1]&gocstr( ENDMENUITEMS } } +# +# Editing options usually accessed via "Settings" in inline menu need to be +# accessed in a different way, when Authoring Space is accessed in course +# context +# + if ($env{'request.role'} !~/^(aa|ca|au)/) { + my $privfile = &Apache::loncommon::escape_single("/priv/$udom/$uname/$thisdisfn"); + $menuitems .= (<