[LON-CAPA-cvs] cvs: loncom /auth lonroles.pm
raeburn
raeburn at source.lon-capa.org
Tue Mar 25 05:29:43 EDT 2014
raeburn Tue Mar 25 09:29:43 2014 EDT
Modified files:
/loncom/auth lonroles.pm
Log:
- Update some comments for changes in rev. 1.299.
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.299 loncom/auth/lonroles.pm:1.300
--- loncom/auth/lonroles.pm:1.299 Wed Mar 19 16:20:36 2014
+++ loncom/auth/lonroles.pm Tue Mar 25 09:29:43 2014
@@ -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 @@
}
}
}
-
- # 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 @@
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();
}
More information about the LON-CAPA-cvs
mailing list