[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 17 Mar 2005 21:02:01 -0000


albertel		Thu Mar 17 16:02:01 2005 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - allowed()ing edit access to my own uploaded docs
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.610 loncom/lonnet/perl/lonnet.pm:1.611
--- loncom/lonnet/perl/lonnet.pm:1.610	Thu Mar 17 15:56:55 2005
+++ loncom/lonnet/perl/lonnet.pm	Thu Mar 17 16:02:00 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.610 2005/03/17 20:56:55 albertel Exp $
+# $Id: lonnet.pm,v 1.611 2005/03/17 21:02:00 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2707,7 +2707,7 @@
 
 # Free bre access to user's own portfolio contents
     my ($space,$domain,$name,$dir)=split('/',$uri);
-    if (('uploaded' eq $space) && ($ENV{'user.name'} eq $name) && 
+    if (($space=~/^(uploaded|ediupload)$/) && ($ENV{'user.name'} eq $name) && 
 	($ENV{'user.domain'} eq $domain) && ('portfolio' eq $dir)) {
         return 'F';
     }
@@ -2776,9 +2776,9 @@
     }
 
 # URI is an uploaded document for this course
-
+# not allowing 'edit' access (editupload) to uploaded course docs
     if (($priv eq 'bre') && ($uri=~m|^uploaded/|)) {
-	my $refuri=$ENV{'httpref.'.$orguri};
+	my $refuri=$ENV{'httpref.'.$origuri};
 	if ($refuri) {
 	    if ($refuri =~ m|^/adm/|) {
 		$thisallowed='F';