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

bowersj2 lon-capa-cvs@mail.lon-capa.org
Fri, 29 Aug 2003 02:45:07 -0000


bowersj2		Thu Aug 28 22:45:07 2003 EDT

  Modified files:              
    /loncom/interface	lonhelp.pm 
  Log:
  Closes bug 2063; Ray Batchelor observes that students have no need of 
  the "More Help" screen, and in fact probably *shouldn't* have access to 
  it.
  
  
Index: loncom/interface/lonhelp.pm
diff -u loncom/interface/lonhelp.pm:1.8 loncom/interface/lonhelp.pm:1.9
--- loncom/interface/lonhelp.pm:1.8	Wed Aug  6 10:28:42 2003
+++ loncom/interface/lonhelp.pm	Thu Aug 28 22:45:07 2003
@@ -35,6 +35,7 @@
 use Apache::loncommon();
 use Apache::lonacc();
 use Apache::lontexconvert();
+use Apache::lonnavmaps; # for advancedUser
 use tth();
 use GDBM_File();
 
@@ -65,6 +66,7 @@
 
     $r->print($tex);
 
+    if (Apache::lonnavmaps::advancedUser()) {
 $r->print(<<FOOTER);
     <!-- END -->
     <hr />
@@ -73,6 +75,13 @@
     </body>
 </html>
 FOOTER
+} else {
+    $r->print(<<FOOTER);
+    <!-- END -->
+    </body>
+</html>
+FOOTER
+}
 }
 
 # Render takes a tex fragment, transforms it for TtH, and returns the