--- loncom/lonnet/perl/lonnet.pm 2006/01/26 06:34:33 1.683.2.13 +++ loncom/lonnet/perl/lonnet.pm 2006/01/31 22:02:03 1.683.2.14 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.683.2.13 2006/01/26 06:34:33 albertel Exp $ +# $Id: lonnet.pm,v 1.683.2.14 2006/01/31 22:02:03 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3066,6 +3066,7 @@ sub customaccess { sub allowed { my ($priv,$uri,$symb)=@_; + my $ver_orguri=$uri; $uri=&deversion($uri); my $orguri=$uri; $uri=&declutter($uri); @@ -3166,7 +3167,7 @@ sub allowed { $thisallowed.=$1; } } else { - my $refuri=$env{'httpref.'.$orguri}; + my $refuri = $env{'httpref.'.$orguri} || $env{'httpref.'.$ver_orguri}; if ($refuri) { if ($refuri =~ m|^/adm/|) { $thisallowed='F';