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

raeburn raeburn at source.lon-capa.org
Thu Jul 15 21:14:14 EDT 2021


raeburn		Fri Jul 16 01:14:14 2021 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - Fix logic.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.508 loncom/interface/lonmenu.pm:1.509
--- loncom/interface/lonmenu.pm:1.508	Mon Jun  7 05:59:43 2021
+++ loncom/interface/lonmenu.pm	Fri Jul 16 01:14:14 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.508 2021/06/07 05:59:43 raeburn Exp $
+# $Id: lonmenu.pm,v 1.509 2021/07/16 01:14:14 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -295,10 +295,10 @@
                                                        # users
         next if    $$menuitem[4]        eq 'roles'     ##show links depending on
                 && (&Apache::loncommon::show_course()  ##term 'Courses' or
-                || $env{'request.lti.login'});         ##'Roles' wanted
+                || $lti);                              ##'Roles' wanted
         next if    $$menuitem[4]        eq 'courses'   ##and not LTI access
                 && (!&Apache::loncommon::show_course()
-                || !$env{'request.lti.login'});
+                || $lti);
         next if    $$menuitem[4]        eq 'notlti'
                 && $lti;
         next if    $$menuitem[4]        eq 'ltiexc'




More information about the LON-CAPA-cvs mailing list