[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Sat, 26 May 2007 00:38:21 -0000
raeburn Fri May 25 20:38:21 2007 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
A user's privileges in a course group were not being set if the user was not in a section (due to regexp change in lonnet.pm rev 1.807).
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.880 loncom/lonnet/perl/lonnet.pm:1.881
--- loncom/lonnet/perl/lonnet.pm:1.880 Tue May 22 17:56:32 2007
+++ loncom/lonnet/perl/lonnet.pm Fri May 25 20:38:19 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.880 2007/05/22 21:56:32 banghart Exp $
+# $Id: lonnet.pm,v 1.881 2007/05/26 00:38:19 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3133,7 +3133,7 @@
if (keys(%{$allgroups}) > 0) {
foreach my $role (keys %{$allroles}) {
my ($trole,$area,$sec,$extendedarea);
- if ($role =~ m-^(\w+|cr/$match_domain/$match_username/\w+)\.(/$match_domain/$match_courseid)(/?\w*)-) {
+ if ($role =~ m-^(\w+|cr/$match_domain/$match_username/\w+)\.(/$match_domain/$match_courseid)(/?\w*)\.-) {
$trole = $1;
$area = $2;
$sec = $3;