--- loncom/interface/lonprintout.pm 2002/05/21 00:44:03 1.30
+++ loncom/interface/lonprintout.pm 2002/07/01 20:56:20 1.36
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.30 2002/05/21 00:44:03 albertel Exp $
+# $Id: lonprintout.pm,v 1.36 2002/07/01 20:56:20 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -46,7 +46,7 @@ use Apache::lonnet;
use Apache::inputtags;
use Apache::edit;
use Apache::File();
-
+use POSIX qw(strftime);
sub headerform {
@@ -75,16 +75,29 @@ sub menu_for_output {
All problems from the top level sequence
ENDMENUOUT1
- if ($ENV{'user.adv'} eq '1') {
+ my $subdirtoprint = &Apache::lonnet::filelocation("",$ENV{'form.url'});
+ $subdirtoprint =~ s/\/[^\/]+$//;
+ if (&Apache::lonnet::allowed('bre',$subdirtoprint) eq 'F') {
$r->print(< All problems from particular subdirectory
+ All problems from current subdirectory (where this particular problem is)
ENDMENUOUT2
- }
- $r->print(<print(<