[LON-CAPA-cvs] cvs: loncom(version_1_2_X) /homework lonhomework.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 27 Sep 2004 18:38:34 -0000
albertel Mon Sep 27 14:38:34 2004 EDT
Modified files: (Branch: version_1_2_X)
/loncom/homework lonhomework.pm
Log:
- backport 1.180
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.178 loncom/homework/lonhomework.pm:1.178.2.1
--- loncom/homework/lonhomework.pm:1.178 Sat Jul 3 16:23:20 2004
+++ loncom/homework/lonhomework.pm Mon Sep 27 14:38:33 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.178 2004/07/03 20:23:20 albertel Exp $
+# $Id: lonhomework.pm,v 1.178.2.1 2004/09/27 18:38:33 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -753,9 +753,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