[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Wed, 07 Aug 2002 20:40:57 -0000
matthew Wed Aug 7 16:40:57 2002 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
Fixes bug 446. A role of librarian should allow full browsing access to
resources (given copyright caveats).
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.261 loncom/lonnet/perl/lonnet.pm:1.262
--- loncom/lonnet/perl/lonnet.pm:1.261 Mon Aug 5 17:02:07 2002
+++ loncom/lonnet/perl/lonnet.pm Wed Aug 7 16:40:57 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.261 2002/08/05 21:02:07 albertel Exp $
+# $Id: lonnet.pm,v 1.262 2002/08/07 20:40:57 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1579,6 +1579,10 @@
($ENV{'course.'.$ENV{'request.course.id'}.'.domain'} eq $1)) {
return '';
}
+ }
+ if ($ENV{'request.role'}=~ /li\.\//) {
+ # Library role, so allow browsing of resources in this domain.
+ return 'F';
}
}