[LON-CAPA-cvs] cvs: loncom /interface lonindexer.pm
raeburn
raeburn@source.lon-capa.org
Fri, 30 Oct 2009 05:12:01 -0000
raeburn Fri Oct 30 05:12:01 2009 EDT
Modified files:
/loncom/interface lonindexer.pm
Log:
- Restricted browsing of RES for Community Coordinators based on bro priv.
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.200 loncom/interface/lonindexer.pm:1.201
--- loncom/interface/lonindexer.pm:1.200 Fri Sep 25 15:37:32 2009
+++ loncom/interface/lonindexer.pm Fri Oct 30 05:12:01 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Directory Indexer
#
-# $Id: lonindexer.pm,v 1.200 2009/09/25 15:37:32 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 @@
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'; }