--- loncom/cgi/archive.pl 2024/05/21 02:57:17 1.2 +++ loncom/cgi/archive.pl 2024/09/03 10:40:04 1.3 @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# $Id: archive.pl,v 1.2 2024/05/21 02:57:17 raeburn Exp $ +# $Id: archive.pl,v 1.3 2024/09/03 10:40:04 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -70,10 +70,11 @@ if (!&LONCAPA::loncgi::check_cookie_and_ &Apache::lonlocal::get_language_handle(); my %lt = &Apache::lonlocal::texthash ( indi => 'Invalid directory name', + noau => 'Archive creation only available to Author', outo => 'Output of command:', comp => 'Archive creation complete.', erro => 'An error occurred.', - cctf => 'Cannot create tar file', + cctf => 'Cannot create tar file', dtf => 'Download tar file', ); # Get the identifier and set a lock @@ -150,6 +151,8 @@ if (!&LONCAPA::loncgi::check_cookie_and_ if ($hashref->{'extension'}) { $extension = $hashref->{'extension'}; } + } else { + $error = 'noau'; } } } else {