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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 27 Sep 2004 18:36:53 -0000


albertel		Mon Sep 27 14:36:53 2004 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  - how about we use the damn helper function, cause ya know it is actually correct
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.179 loncom/homework/lonhomework.pm:1.180
--- loncom/homework/lonhomework.pm:1.179	Sat Sep 18 13:29:29 2004
+++ loncom/homework/lonhomework.pm	Mon Sep 27 14:36:53 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.179 2004/09/18 17:29:29 albertel Exp $
+# $Id: lonhomework.pm,v 1.180 2004/09/27 18:36:53 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -755,9 +755,7 @@
     if (&setupheader($request)) { return OK; }
     $ENV{'request.uri'}=$request->uri;
 
-    #setup permissions
-    $Apache::lonhomework::browse= &Apache::lonnet::allowed('bre',$ENV{'request.filename'});
-    $Apache::lonhomework::viewgrades=&Apache::lonnet::allowed('vgr',$ENV{'request.course.id'});
+    &setuppermissions();
     &Apache::lonxml::debug("Permissions:$Apache::lonhomework::browse:$Apache::lonhomework::viewgrades:");
     # some times multiple problemmodes are submitted, need to select
     # the last one