--- loncom/lonnet/perl/lonnet.pm 2006/01/27 20:37:21 1.704 +++ loncom/lonnet/perl/lonnet.pm 2006/01/31 21:57:59 1.705 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.704 2006/01/27 20:37:21 albertel Exp $ +# $Id: lonnet.pm,v 1.705 2006/01/31 21:57:59 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3081,6 +3081,7 @@ sub customaccess { sub allowed { my ($priv,$uri,$symb)=@_; + my $ver_orguri=$uri; $uri=&deversion($uri); my $orguri=$uri; $uri=&declutter($uri); @@ -3181,7 +3182,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';