[LON-CAPA-cvs] cvs: loncom /auth lonroles.pm

raeburn raeburn at source.lon-capa.org
Mon Mar 13 23:40:24 EDT 2017


raeburn		Tue Mar 14 03:40:24 2017 EDT

  Modified files:              
    /loncom/auth	lonroles.pm 
  Log:
  - &authorbrowser_javascript() not needed unless user has DC role(s).
  
  
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.328 loncom/auth/lonroles.pm:1.329
--- loncom/auth/lonroles.pm:1.328	Mon Mar 13 18:14:13 2017
+++ loncom/auth/lonroles.pm	Tue Mar 14 03:40:23 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # User Roles Screen
 #
-# $Id: lonroles.pm,v 1.328 2017/03/13 18:14:13 raeburn Exp $
+# $Id: lonroles.pm,v 1.329 2017/03/14 03:40:23 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1097,9 +1097,11 @@
 # ----------------------------------------------------------------------- Table
 
     if (($numdc > 0) || (($numhelpdesk > 0) && ($numadhoc > 0))) {
-        $r->print(&coursepick_jscript());
-        $r->print(&Apache::loncommon::coursebrowser_javascript().
-                  &Apache::loncommon::authorbrowser_javascript());
+        $r->print(&coursepick_jscript().
+                  &Apache::loncommon::coursebrowser_javascript());
+    }
+    if ($numdc > 0) {
+        $r->print(&Apache::loncommon::authorbrowser_javascript());
     }
 
     unless ((!&Apache::loncommon::show_course()) || ($nochoose) || ($countactive==1)) {




More information about the LON-CAPA-cvs mailing list