[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 08 Jul 2004 19:58:30 -0000
albertel Thu Jul 8 15:58:30 2004 EDT
Modified files:
/loncom/interface londocs.pm
Log:
- Fixes BUG#3098 allow acces to uploaded files we provide links to to students
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.134 loncom/interface/londocs.pm:1.135
--- loncom/interface/londocs.pm:1.134 Sun Jul 4 01:43:12 2004
+++ loncom/interface/londocs.pm Thu Jul 8 15:58:29 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.134 2004/07/04 05:43:12 albertel Exp $
+# $Id: londocs.pm,v 1.135 2004/07/08 19:58:29 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -575,13 +575,15 @@
my $isfolder=0;
my $folderarg;
if ($uploaded) {
- if ($extension eq 'sequence') {
- $icon=$iconpath.'/folder_closed.gif';
- $url=~/$coursenum\/([\/\w]+)\.sequence$/;
- $url='/adm/coursedocs?';
- $folderarg=$1;
- $isfolder=1;
- }
+ if ($extension eq 'sequence') {
+ $icon=$iconpath.'/folder_closed.gif';
+ $url=~/$coursenum\/([\/\w]+)\.sequence$/;
+ $url='/adm/coursedocs?';
+ $folderarg=$1;
+ $isfolder=1;
+ } else {
+ &Apache::lonnet::allowuploaded('/adm/coursedoc',$url);
+ }
}
$url=~s/^http\&colon\;\/\//\/adm\/wrapper\/ext\//;
if ((!$isfolder) && ($residx) && ($folder!~/supplemental/)) {