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

raeburn raeburn at source.lon-capa.org
Tue May 5 20:07:49 EDT 2020


raeburn		Wed May  6 00:07:49 2020 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - Update comments.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.762 loncom/homework/grades.pm:1.763
--- loncom/homework/grades.pm:1.762	Wed Feb 12 16:25:56 2020
+++ loncom/homework/grades.pm	Wed May  6 00:07:48 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.762 2020/02/12 16:25:56 raeburn Exp $
+# $Id: grades.pm,v 1.763 2020/05/06 00:07:48 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -655,7 +655,7 @@
 		#can modify the requested section
 		return 1;
 	    } else {
-		# can't modify the request section
+		# can't modify the requested section
 		return 0;
 	    }
 	}
@@ -668,19 +668,19 @@
     my ($sec)=@_;
     if ($perm{'vgr'}) {
 	if (!defined($perm{'vgr_section'})) {
-	    # can modify whole class
+	    # can view whole class
 	    return 1;
 	} else {
 	    if ($sec eq $perm{'vgr_section'}) {
-		#can modify the requested section
+		#can view the requested section
 		return 1;
 	    } else {
-		# can't modify the request section
+		# can't view the requested section
 		return 0;
 	    }
 	}
     }
-    #can't modify
+    #can't view
     return 0;
 }
 




More information about the LON-CAPA-cvs mailing list