--- loncom/lonnet/perl/lonnet.pm 2002/06/27 14:08:06 1.246 +++ loncom/lonnet/perl/lonnet.pm 2002/06/27 19:04:15 1.248 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.246 2002/06/27 14:08:06 www Exp $ +# $Id: lonnet.pm,v 1.248 2002/06/27 19:04:15 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1740,8 +1740,13 @@ sub allowed { # Restricted by state or randomout? if ($thisallowed=~/X/) { - if ((&condval($statecond)) && - (!$ENV{'acc.randomout'}=~/\&$ENV{'request.symb'}\&/)) { + if ($ENV{'acc.randomout'}) { + my $symb=&symbread($uri); + if (($symb) && ($ENV{'acc.randomout'}=~/\&$symb\&/)) { + return ''; + } + } + if (&condval($statecond)) { return '2'; } else { return '';