Diff for /loncom/auth/lonacc.pm between versions 1.20 and 1.21

version 1.20, 2001/08/12 01:18:37 version 1.21, 2001/09/26 14:07:45
Line 3 Line 3
 # 5/21/99,5/22,5/29,5/31,6/15,16/11,22/11,  # 5/21/99,5/22,5/29,5/31,6/15,16/11,22/11,
 # 01/06,01/13,05/31,06/01,09/06,09/25,09/28,10/30,11/6,  # 01/06,01/13,05/31,06/01,09/06,09/25,09/28,10/30,11/6,
 # 12/25,12/26,  # 12/25,12/26,
 # 01/06/01,05/28,8/11 Gerd Kortemeyer  # 01/06/01,05/28,8/11,9/26 Gerd Kortemeyer
   
 package Apache::lonacc;  package Apache::lonacc;
   
Line 137  sub handler { Line 137  sub handler {
         };          };
     }      }
   
   # -------------------------------------------- See if this is a public resource
       if (&Apache::lonnet::metadata($requrl,'copyright') eq 'public') {
           &Apache::lonnet::logthis('Granting public access: '.$requrl);
    $ENV{'user.name'}='public';
           $ENV{'user.domain'}='public';
           $ENV{'request.state'} = "published";
           $ENV{'request.publicaccess'} = 1;
           $ENV{'request.filename'} = $r->filename;
           return OK;
       }
 # ----------------------------------------------- Store where they wanted to go  # ----------------------------------------------- Store where they wanted to go
       
     $ENV{'request.firsturl'}=$requrl;      $ENV{'request.firsturl'}=$requrl;
     return FORBIDDEN;      return FORBIDDEN;
 }  }

Removed from v.1.20  
changed lines
  Added in v.1.21


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