--- rat/lonpageflip.pm 2004/04/08 09:14:41 1.47 +++ rat/lonpageflip.pm 2004/10/18 22:24:00 1.48 @@ -2,7 +2,7 @@ # # Page flip handler # -# $Id: lonpageflip.pm,v 1.47 2004/04/08 09:14:41 raeburn Exp $ +# $Id: lonpageflip.pm,v 1.48 2004/10/18 22:24:00 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -268,7 +268,8 @@ sub handler { # -------------------------------------- Do we have one and only one empty URL? my $safecount=0; while (($next) && ($next!~/\,/) && - ((!$hash{'src_'.$next}) || ($hash{'randomout_'.$next})) + ((!$hash{'src_'.$next}) || + ($ENV{'request.role.adv'}) && $hash{'randomout_'.$next})) && ($safecount<10000)) { ($next,$endupmap)=&move($next,$endupmap,$direction); $safecount++;