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

raeburn raeburn at source.lon-capa.org
Tue Dec 4 11:00:42 EST 2012


raeburn		Tue Dec  4 16:00:42 2012 EDT

  Modified files:              
    /loncom/auth	lonacc.pm 
  Log:
  - HTML files uploaded to course's Supplemental content area can be edited,
    and any dependencies can be replaced (or uploaded, if missing).
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.139 loncom/auth/lonacc.pm:1.140
--- loncom/auth/lonacc.pm:1.139	Tue Aug 21 17:51:58 2012
+++ loncom/auth/lonacc.pm	Tue Dec  4 16:00:42 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.139 2012/08/21 17:51:58 raeburn Exp $
+# $Id: lonacc.pm,v 1.140 2012/12/04 16:00:42 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -594,7 +594,7 @@
 	    }
             my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};;
             my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};;
-            if ($requrl =~ m{^/+uploaded/\Q$cdom\E/\Q$cnum\E/docs/.+\.html?$}) {
+            if ($requrl =~ m{^/+uploaded/\Q$cdom\E/\Q$cnum\E/(docs|supplemental)/.+\.html?$}) {
                 if (&Apache::lonnet::allowed('mdc',$env{'request.course.id'})) {
                     if ($query) {
                         &Apache::loncommon::get_unprocessed_cgi($query,['forceedit']);




More information about the LON-CAPA-cvs mailing list