--- loncom/auth/lonroles.pm 2014/03/19 16:20:36 1.299 +++ loncom/auth/lonroles.pm 2014/03/25 09:29:43 1.300 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.299 2014/03/19 16:20:36 musolffc Exp $ +# $Id: lonroles.pm,v 1.300 2014/03/25 09:29:43 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -664,9 +664,9 @@ ENDENTERKEY } } } - - # If it's an external resource, + # Are we allowed to look at the first resource? if ($furl =~ m{^(/adm/wrapper|)/ext/}) { + # If it's an external resource, # strip off the symb argument and possible query my ($exturl,$symb) = ($furl =~ m{^(.+)(?:\?|\&)symb=(.+)$}); # Unencode $symb @@ -675,7 +675,7 @@ ENDENTERKEY if (!&Apache::lonnet::allowed('bre',$exturl,$symb)) { $furl = &Apache::lonpageflip::first_accessible_resource(); } - # For local resources just check for permission + # For other resources just check for permission } elsif (!&Apache::lonnet::allowed('bre',$furl)) { $furl = &Apache::lonpageflip::first_accessible_resource(); }