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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 20 Oct 2006 22:05:56 -0000


albertel		Fri Oct 20 18:05:56 2006 EDT

  Modified files:              
    /loncom/auth	lonroles.pm 
  Log:
  - $furl could have the symb arg and other complicators, just let the pageflip sug figure out where we should be
  
  
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.168 loncom/auth/lonroles.pm:1.169
--- loncom/auth/lonroles.pm:1.168	Fri Oct 20 15:59:57 2006
+++ loncom/auth/lonroles.pm	Fri Oct 20 18:05:55 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # User Roles Screen
 #
-# $Id: lonroles.pm,v 1.168 2006/10/20 19:59:57 albertel Exp $
+# $Id: lonroles.pm,v 1.169 2006/10/20 22:05:55 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -313,7 +313,7 @@
 				    }
 				}
 # Are we allowed to look at the first resource?
-				if (!&Apache::lonnet::allowed('bre',$furl)) {
+				if ($furl !~ m|^/adm/|) {
 # Guess not ...
 				    $furl=&Apache::lonpageflip::first_accessible_resource();
 				}