--- loncom/interface/lonindexer.pm 2009/07/17 15:42:07 1.199 +++ loncom/interface/lonindexer.pm 2009/10/30 05:12:01 1.201 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.199 2009/07/17 15:42:07 droeschl Exp $ +# $Id: lonindexer.pm,v 1.201 2009/10/30 05:12:01 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -913,8 +913,7 @@ sub display_line { return OK; } # Do we have permission to look at this? - - if($filecom[15] ne '1') { return OK if (!&Apache::lonnet::allowed('bre',$pathprefix.$filecom[0])); } + if($filecom[15] ne '1') { return OK if ((!&Apache::lonnet::allowed('bre',$pathprefix.$filecom[0])) && (!&Apache::lonnet::allowed('bro',$pathprefix.$filecom[0]))); } # make absolute links appear on different background #SB if ($absolute) { $fileclr='#ccdd99'; } @@ -1147,7 +1146,7 @@ $r->print (''.($output eq '' ? ' ':$output). + $r->print(''.($output eq '' ? ' ':$output). " \n"); }