[LON-CAPA-cvs] cvs: loncom /interface lonsyllabus.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 04 May 2004 14:14:58 -0000


sakharuk		Tue May  4 10:14:58 2004 EDT

  Modified files:              
    /loncom/interface	lonsyllabus.pm 
  Log:
  allowed=0 for the 'tex' target.
  
  
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.29 loncom/interface/lonsyllabus.pm:1.30
--- loncom/interface/lonsyllabus.pm:1.29	Mon May  3 13:49:11 2004
+++ loncom/interface/lonsyllabus.pm	Tue May  4 10:14:58 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Syllabus
 #
-# $Id: lonsyllabus.pm,v 1.29 2004/05/03 17:49:11 sakharuk Exp $
+# $Id: lonsyllabus.pm,v 1.30 2004/05/04 14:14:58 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -45,7 +45,6 @@
 
 # ------------------------------------------------------------ Print the screen
     my $target=$ENV{'form.grade_target'};
-    &Apache::lonnet::logthis("NOW TARGET IS DEFINIED AS $target");
     if ($target ne 'tex') {
 	$r->print(<<ENDDOCUMENT);
 <html>
@@ -160,7 +159,7 @@
 	  if (($syllabus{'uploaded.lastmodified'}) && (!$forceedit)) {
 	      $forcestudent='student';
 	  }
-          if ($forcestudent) { $allowed=0; }
+          if ($forcestudent or $target eq 'tex') { $allowed=0; }
        }
        if ($allowed) {
           $r->print('<p>'.