Diff for /loncom/lonnet/perl/lonnet.pm between versions 1.544 and 1.545

version 1.544, 2004/09/20 20:11:16 version 1.545, 2004/09/21 22:38:10
Line 2774  sub allowed { Line 2774  sub allowed {
     $uri=&deversion($uri);      $uri=&deversion($uri);
     my $orguri=$uri;      my $orguri=$uri;
     $uri=&declutter($uri);      $uri=&declutter($uri);
       
       
       
     if (defined($ENV{'allowed.'.$priv})) { return $ENV{'allowed.'.$priv}; }      if (defined($ENV{'allowed.'.$priv})) { return $ENV{'allowed.'.$priv}; }
 # Free bre access to adm and meta resources  # Free bre access to adm and meta resources
     if (((($uri=~/^adm\//) && ($uri !~ m|/bulletinboard$|))       if (((($uri=~/^adm\//) && ($uri !~ m|/bulletinboard$|)) 
Line 2782  sub allowed { Line 2784  sub allowed {
  return 'F';   return 'F';
     }      }
   
   # Free bre access to user's own portfolio contents
       $uri=~m:([^/]+)/([^/]+)/([^/]+)/([^/]+)/:;
       if (('uploaded' eq $1)&&($ENV{'user.name'} eq $3) && ($ENV{'user.domain'} eq $2) && ('portfolio' eq $4)) {
           return 'F';
       }
   
 # Free bre to public access  # Free bre to public access
   
     if ($priv eq 'bre') {      if ($priv eq 'bre') {

Removed from v.1.544  
changed lines
  Added in v.1.545


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>