[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 09 Jan 2006 20:47:52 -0000


albertel		Mon Jan  9 15:47:52 2006 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - wrong perm is being checked
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.329 loncom/homework/structuretags.pm:1.330
--- loncom/homework/structuretags.pm:1.329	Mon Jan  2 17:34:31 2006
+++ loncom/homework/structuretags.pm	Mon Jan  9 15:47:52 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.329 2006/01/02 22:34:31 albertel Exp $
+# $Id: structuretags.pm,v 1.330 2006/01/09 20:47:52 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1586,7 +1586,7 @@
     my $result='';
     if (($env{'form.simple_edit_button'} ne 'off') &&
 	($target eq 'web') &&
-        (&Apache::lonnet::allowed('srm',$env{'request.course.id'}))) {
+        (&Apache::lonnet::allowed('mdc',$env{'request.course.id'}))) {
         my $url=$env{'request.noversionuri'};
         $url=~s/\?.*$//;
 	my ($symb) = &Apache::lonxml::whichuser();