Diff for /loncom/homework/grades.pm between versions 1.596.2.10 and 1.596.2.11

version 1.596.2.10, 2011/11/14 23:34:31 version 1.596.2.11, 2011/11/29 17:17:35
Line 9573  sub handler { Line 9573  sub handler {
     } else {      } else {
         &init_perm();          &init_perm();
         if (!$env{'request.course.id'}) {          if (!$env{'request.course.id'}) {
             # Not in a course.              unless ((&Apache::lonnet::allowed('usc',$env{'request.role.domain'})) &&
             $env{'user.error.msg'}="/adm/grades::vgr:0:0:Cannot display grades page outside course context";                      ($command =~ /^scantronupload/)) {
             return HTTP_NOT_ACCEPTABLE;                  # Not in a course.
                   $env{'user.error.msg'}="/adm/grades::vgr:0:0:Cannot display grades page outside course context";
                   return HTTP_NOT_ACCEPTABLE;
               }
         } elsif (!%perm) {          } elsif (!%perm) {
             $request->internal_redirect('/adm/quickgrades');              $request->internal_redirect('/adm/quickgrades');
         }          }

Removed from v.1.596.2.10  
changed lines
  Added in v.1.596.2.11


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>