--- loncom/interface/lonmenu.pm 2024/08/22 02:11:11 1.369.2.83.2.19 +++ loncom/interface/lonmenu.pm 2024/09/03 10:52:19 1.369.2.83.2.20 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.369.2.83.2.19 2024/08/22 02:11:11 raeburn Exp $ +# $Id: lonmenu.pm,v 1.369.2.83.2.20 2024/09/03 10:52:19 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1313,7 +1313,8 @@ s&7&4&docs-22x22.png&Edit Metadata&defau s&7&2&prt.png&Print&printout[_1]&gocstr('/adm/printout','$esc_currdir')&Print contents of directory s&7&1&del.png&Delete&dir[_3]&gocstr('/adm/cfile?action=delete','$esc_currdir')&Delete this Directory ENDMENUITEMS - if ($env{'environment.canarchive'}) { + if (($env{'environment.canarchive'}) && + ($uname eq $env{'user.name'}) && ($udom eq $env{'user.domain'})) { $menuitems .= (<