[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
lon-capa-cvs@mail.lon-capa.org
Fri, 18 Aug 2006 23:04:04 -0000
raeburn Fri Aug 18 19:04:04 2006 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
Appropriate entry included for user.priv.cr/..../$group in user's env for user with custom role in a course to allow access to group functionality permitted by the user's group privileges.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.770 loncom/lonnet/perl/lonnet.pm:1.771
--- loncom/lonnet/perl/lonnet.pm:1.770 Wed Aug 16 16:27:30 2006
+++ loncom/lonnet/perl/lonnet.pm Fri Aug 18 19:04:01 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.770 2006/08/16 20:27:30 albertel Exp $
+# $Id: lonnet.pm,v 1.771 2006/08/18 23:04:01 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2845,7 +2845,7 @@
if (keys(%{$allgroups}) > 0) {
foreach my $role (keys %{$allroles}) {
my ($trole,$area,$sec,$extendedarea);
- if ($role =~ m|^(\w+)\.(/\w+/\w+)(/?\w*)|) {
+ if ($role =~ m-^(\w+|cr/\w+/\w+/\w+)\.(/\w+/\w+)(/?\w*)-) {
$trole = $1;
$area = $2;
$sec = $3;