--- loncom/homework/grades.pm 2020/02/12 16:25:56 1.762 +++ loncom/homework/grades.pm 2020/05/06 00:07:48 1.763 @@ -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 @@ sub canmodify { #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 @@ sub canview { 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; }