version 1.38, 2004/06/08 15:55:38
|
version 1.39, 2004/10/12 20:51:54
|
Line 293 sub handler {
|
Line 293 sub handler {
|
# Check that the student is in their section? |
# Check that the student is in their section? |
if (exists($ENV{'request.course.sec'}) && |
if (exists($ENV{'request.course.sec'}) && |
$ENV{'request.course.sec'} ne '' ) { |
$ENV{'request.course.sec'} ne '' ) { |
my $stu_sec = &Apache::lonnet::usection($domain,$name, |
my $stu_sec = &Apache::lonnet::getsection($domain,$name, |
$ENV{'request.course.id'}); |
$ENV{'request.course.id'}); |
if ($stu_sec ne $ENV{'request.course.sec'}) { |
if ($stu_sec ne $ENV{'request.course.sec'}) { |
$ENV{'user.error.msg'}= |
$ENV{'user.error.msg'}= |
$r->uri.":vgr:0:0:Requested student not in your section."; |
$r->uri.":vgr:0:0:Requested student not in your section."; |