[LON-CAPA-cvs] cvs: rat / lonuserstate.pm

raeburn raeburn at source.lon-capa.org
Wed Apr 22 11:24:07 EDT 2020


raeburn		Wed Apr 22 15:24:07 2020 EDT

  Modified files:              
    /rat	lonuserstate.pm 
  Log:
  - Check for hiddenurl before checking for advanced user.
  
  
Index: rat/lonuserstate.pm
diff -u rat/lonuserstate.pm:1.159 rat/lonuserstate.pm:1.160
--- rat/lonuserstate.pm:1.159	Wed Apr 22 14:52:56 2020
+++ rat/lonuserstate.pm	Wed Apr 22 15:24:07 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Construct and maintain state and binary representation of course for user
 #
-# $Id: lonuserstate.pm,v 1.159 2020/04/22 14:52:56 raeburn Exp $
+# $Id: lonuserstate.pm,v 1.160 2020/04/22 15:24:07 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -570,7 +570,7 @@
     if (($turi=~/\.sequence$/) ||
 	($turi=~/\.page$/)) {
 	$hash{'is_map_'.$rid}=1;
-	if ((&is_advanced($courseid)) || (!$hiddenurl{$rid})) {
+	if ((!$hiddenurl{$rid}) || (&is_advanced($courseid))) {
 	    &loadmap($turi,$rid,$courseid);
 	}
     } 




More information about the LON-CAPA-cvs mailing list