[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 16 Apr 2004 19:10:27 -0000
albertel Fri Apr 16 15:10:27 2004 EDT
Modified files:
/loncom/homework lonhomework.pm
Log:
- allow STU with AU or CA to use CSTR BUG#1115 (loncacc properly controls access)
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.172 loncom/homework/lonhomework.pm:1.173
--- loncom/homework/lonhomework.pm:1.172 Tue Mar 30 03:20:49 2004
+++ loncom/homework/lonhomework.pm Fri Apr 16 15:10:27 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.172 2004/03/30 08:20:49 albertel Exp $
+# $Id: lonhomework.pm,v 1.173 2004/04/16 19:10:27 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -753,7 +753,8 @@
#check if we know where we are
if ($ENV{'request.course.fn'} && !&Apache::lonnet::symbread()) {
# if we are browsing we might not be able to know where we are
- if ($Apache::lonhomework::browse ne 'F') {
+ if ($Apache::lonhomework::browse ne 'F' &&
+ $ENV{'request.state'} ne "construct") {
#should know where we are, so ask
if ( &Apache::lonnet::mod_perl_version() == 2 ) {
&Apache::lonnet::cleanenv();