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

raeburn raeburn@source.lon-capa.org
Fri, 26 Mar 2010 00:49:36 -0000


raeburn		Fri Mar 26 00:49:36 2010 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - Show instructorcomments if resource is in a community, and 
    user has coordinator (co) role.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.467 loncom/homework/structuretags.pm:1.468
--- loncom/homework/structuretags.pm:1.467	Sun Mar 21 18:31:45 2010
+++ loncom/homework/structuretags.pm	Fri Mar 26 00:49:36 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.467 2010/03/21 18:31:45 www Exp $
+# $Id: structuretags.pm,v 1.468 2010/03/26 00:49:36 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1479,7 +1479,7 @@
 
     if ($target eq 'web' || $target eq 'grade'   || $target eq 'answer' ||
 	$target eq 'tex' || $target eq 'analyze' || $target eq 'webgrade') {
-        $result=($env{'request.role'}=~/^(in|cc|au|ca|li)/);
+        $result=($env{'request.role'}=~/^(in|cc|co|au|ca|li)/);
 	if ( (! $result) or ($env{'form.instructor_comments'} eq 'hide')) {
 	    my $skip=&Apache::lonxml::get_all_text("/instructorcomment",
 						   $parser,$style);