[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

raeburn raeburn at source.lon-capa.org
Sun Oct 30 21:14:25 EDT 2011


raeburn		Mon Oct 31 01:14:25 2011 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - Bug 1320.
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1024 loncom/interface/loncommon.pm:1.1025
--- loncom/interface/loncommon.pm:1.1024	Tue Oct 25 22:04:16 2011
+++ loncom/interface/loncommon.pm	Mon Oct 31 01:14:24 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1024 2011/10/25 22:04:16 www Exp $
+# $Id: loncommon.pm,v 1.1025 2011/10/31 01:14:24 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7126,7 +7126,7 @@
         $function='admin';
     }
     if (($env{'request.role'}=~/^(au|ca|aa)/) ||
-        ($ENV{'REQUEST_URI'}=~/^(\/priv|\~)/)) {
+        ($ENV{'REQUEST_URI'}=~ m{/^(/priv)})) {
         $function='author';
     }
     return $function;




More information about the LON-CAPA-cvs mailing list