[LON-CAPA-cvs] cvs: loncom /publisher lonrights.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 20 Jan 2004 21:10:03 -0000


albertel		Tue Jan 20 16:10:03 2004 EDT

  Modified files:              
    /loncom/publisher	lonrights.pm 
  Log:
  - only show 'Select Course' link when in construct mode
  
  
Index: loncom/publisher/lonrights.pm
diff -u loncom/publisher/lonrights.pm:1.11 loncom/publisher/lonrights.pm:1.12
--- loncom/publisher/lonrights.pm:1.11	Mon Oct 13 18:12:55 2003
+++ loncom/publisher/lonrights.pm	Tue Jan 20 16:10:03 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to show and edit custom distribution rights
 #
-# $Id: lonrights.pm,v 1.11 2003/10/13 22:12:55 albertel Exp $
+# $Id: lonrights.pm,v 1.12 2004/01/20 21:10:03 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -283,8 +283,10 @@
                  &Apache::lonnet::coursedescription($rdom.'_'.$rcourse);
               $r->print($descript{'description'}.'   ');
           }
-          $r->print(&Apache::loncommon::selectcourse_link('rules',
-		    'course_'.$rulecounter,'domain_'.$rulecounter));
+	  if ($constructmode) {
+	      $r->print(&Apache::loncommon::selectcourse_link('rules',
+		        'course_'.$rulecounter,'domain_'.$rulecounter));
+	  }
 # close row
           $r->print('</td></tr>');
      }