--- loncom/publisher/loncfile.pm 2024/09/03 11:07:47 1.129.2.2 +++ loncom/publisher/loncfile.pm 2024/09/26 23:04:06 1.129.2.3 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.129.2.2 2024/09/03 11:07:47 raeburn Exp $ +# $Id: loncfile.pm,v 1.129.2.3 2024/09/26 23:04:06 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1686,7 +1686,7 @@ sub phasetwo { } $dest = $dir."/."; } elsif ($env{'form.action'} eq 'archive') { - if (($env{'environment.archive'}) && + if (($env{'environment.canarchive'}) && ($env{'user.name'} eq $uname) && ($env{'user.domain'} eq $udom)) { &Archive2($r,$uname,$udom,$fn,$identifier);