--- loncom/interface/lonprintout.pm 2003/06/23 19:22:00 1.193 +++ loncom/interface/lonprintout.pm 2003/06/24 14:07:27 1.194 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.193 2003/06/23 19:22:00 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.194 2003/06/24 14:07:27 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1023,7 +1023,7 @@ CHOOSE_STUDENTS } # FIXME: That RE should come from a library somewhere. - if (((&Apache::lonnet::allowed('bre',$subdir) eq 'F') and ($helper->{VARS}->{'postdata'}=~/\.(problem|exam|quiz|assess|survey|form|library|page|xml|html|htm|xhtml|xhtm)/)) or defined $helper->{'VARS'}->{'construction'}) { + if ((((&Apache::lonnet::allowed('bre',$subdir) eq 'F') and ($helper->{VARS}->{'postdata'}=~/\.(problem|exam|quiz|assess|survey|form|library|page|xml|html|htm|xhtml|xhtm)/)) or defined $helper->{'VARS'}->{'construction'}) and $ENV{'request.role.adv'}) { push @{$printChoices}, ["Problems from current subdirectory $subdir", 'problems_from_directory', 'CHOOSE_FROM_SUBDIR']; my $f = '$filename';