[LON-CAPA-cvs] cvs: loncom /auth lonacc.pm publiccheck.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 04 Aug 2006 21:31:53 -0000


albertel		Fri Aug  4 17:31:53 2006 EDT

  Modified files:              
    /loncom/auth	lonacc.pm publiccheck.pm 
  Log:
  - allowing public access to aboutme/portfolio
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.90 loncom/auth/lonacc.pm:1.91
--- loncom/auth/lonacc.pm:1.90	Fri Jul 21 15:42:12 2006
+++ loncom/auth/lonacc.pm	Fri Aug  4 17:31:53 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.90 2006/07/21 19:42:12 albertel Exp $
+# $Id: lonacc.pm,v 1.91 2006/08/04 21:31:53 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -225,6 +225,7 @@
 	    if ($env{'user.name'} eq 'public' && 
 		$env{'user.domain'} eq 'public' &&
 		$requrl !~ m{^/+(res|public|uploaded)/} &&
+		$requrl !~ m{^/adm/[^/]+/[^/]+/aboutme/portfolio$} &&
 		$requrl !~ m{^/+adm/(help|logout|restrictedaccess|randomlabel\.png)}) {
 		$env{'request.querystring'}=$r->args;
 		$env{'request.firsturl'}=$requrl;
Index: loncom/auth/publiccheck.pm
diff -u loncom/auth/publiccheck.pm:1.9 loncom/auth/publiccheck.pm:1.10
--- loncom/auth/publiccheck.pm:1.9	Fri Jul 21 15:42:12 2006
+++ loncom/auth/publiccheck.pm	Fri Aug  4 17:31:53 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: publiccheck.pm,v 1.9 2006/07/21 19:42:12 albertel Exp $
+# $Id: publiccheck.pm,v 1.10 2006/08/04 21:31:53 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -58,6 +58,7 @@
     }
     if ($requrl=~m|^/public/|
 	|| $requrl=~m|^/adm/help/.*\.hlp$|
+	|| $requrl=~m|^/adm/[^/]+/[^/]+/aboutme/portfolio$|
 	|| (&Apache::lonnet::metadata($requrl,'copyright') eq 'public')) {
         &process_public($r,$requrl);
         return OK;