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

raeburn raeburn at source.lon-capa.org
Thu Jun 1 16:04:36 EDT 2023


raeburn		Thu Jun  1 20:04:36 2023 EDT

  Modified files:              
    /loncom/interface	courseprefs.pm 
  Log:
  - Input disabled for form elements displayed via External > External Tools
    in Course Editor for user with view-only access to course editing tools.
  
  
Index: loncom/interface/courseprefs.pm
diff -u loncom/interface/courseprefs.pm:1.120 loncom/interface/courseprefs.pm:1.121
--- loncom/interface/courseprefs.pm:1.120	Mon May 22 21:10:55 2023
+++ loncom/interface/courseprefs.pm	Thu Jun  1 20:04:36 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set configuration settings for a course
 #
-# $Id: courseprefs.pm,v 1.120 2023/05/22 21:10:55 raeburn Exp $
+# $Id: courseprefs.pm,v 1.121 2023/06/01 20:04:36 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6310,6 +6310,9 @@
 sub print_ltitools {
     my ($cdom,$cnum,$settings,$rowtotal,$crstype,$noedit,$context) = @_;
     my ($datatable,$disabled,$css_class,$dest);
+    if ($noedit) {
+        $disabled = ' disabled="disabled"';
+    }
     my $itemcount = 1;
     unless ($context eq 'domain') {
         my %tooltypes = &Apache::loncommon::usable_exttools();




More information about the LON-CAPA-cvs mailing list