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

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 07 Jun 2004 19:08:37 -0000


sakharuk		Mon Jun  7 15:08:37 2004 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Added possibility to use extended menu for privilaged users starting from simple pages, bulletin boards, pages about me, sullabuses.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.305 loncom/interface/lonprintout.pm:1.306
--- loncom/interface/lonprintout.pm:1.305	Thu Jun  3 14:46:34 2004
+++ loncom/interface/lonprintout.pm	Mon Jun  7 15:08:36 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.305 2004/06/03 18:46:34 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.306 2004/06/07 19:08:36 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1596,7 +1596,8 @@
 
     # If the user is priviledged, allow them to print all 
     # problems in the course, optionally for selected students
-    if ($userPriviledged && ($helper->{VARS}->{'postdata'}=~/\/res\//)) { 
+    if ($userPriviledged && 
+        ($helper->{VARS}->{'postdata'}=~/\/res\// || $helper->{VARS}->{'postdata'}=~/\/(syllabus|smppg|aboutme|bulletinboard)$/)) { 
         push @{$printChoices}, ['<b>Problems</b> from <b>entire course</b>', 'all_problems', 'ALL_PROBLEMS'];
          &Apache::lonxml::xmlparse($r, 'helper', <<ALL_PROBLEMS);
   <state name="ALL_PROBLEMS" title="Select Problem(s) to print">