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

www www at source.lon-capa.org
Mon Nov 28 20:49:00 EST 2011


www		Tue Nov 29 01:49:00 2011 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  Only show edit link for "uploaded" sequences and pages
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.468 loncom/interface/lonnavmaps.pm:1.469
--- loncom/interface/lonnavmaps.pm:1.468	Sun Nov 27 22:51:28 2011
+++ loncom/interface/lonnavmaps.pm	Tue Nov 29 01:49:00 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.468 2011/11/27 22:51:28 www Exp $
+# $Id: lonnavmaps.pm,v 1.469 2011/11/29 01:49:00 www Exp $
 
 #
 # Copyright Michigan State University Board of Trustees
@@ -1137,7 +1137,7 @@
     }
     if ($resource->is_map()) {
         if (&Apache::lonnet::allowed('mdc')) {
-            if ($resource->symb=~/^uploaded/) {
+            if ($resource->symb=~/\_\_\_[^\_]+\_\_\_uploaded/) {
                $result.=" <a href='/adm/coursedocs?command=direct&symb=".&escape($resource->symb())."'>".
                               "<span class='LC_setting'>".&mt("Edit Content").'</span></a> ';
             }




More information about the LON-CAPA-cvs mailing list