[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Wed Nov 28 22:23:52 EST 2012
raeburn Thu Nov 29 03:23:52 2012 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- check for group membership changes triggered by role change only needed
for course roles.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1199 loncom/lonnet/perl/lonnet.pm:1.1200
--- loncom/lonnet/perl/lonnet.pm:1.1199 Tue Nov 27 23:45:22 2012
+++ loncom/lonnet/perl/lonnet.pm Thu Nov 29 03:23:52 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1199 2012/11/27 23:45:22 raeburn Exp $
+# $Id: lonnet.pm,v 1.1200 2012/11/29 03:23:52 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -8039,16 +8039,16 @@
# log new user role if status is ok
if ($answer eq 'ok') {
&userrolelog($role,$uname,$udom,$url,$start,$end);
-# for course roles, perform group memberships changes triggered by role change.
- unless ($role =~ /^gr/) {
- &Apache::longroup::group_changes($udom,$uname,$url,$role,$origend,
- $origstart,$selfenroll,$context);
- }
if (($role eq 'cc') || ($role eq 'in') ||
($role eq 'ep') || ($role eq 'ad') ||
($role eq 'ta') || ($role eq 'st') ||
($role=~/^cr/) || ($role eq 'gr') ||
($role eq 'co')) {
+# for course roles, perform group memberships changes triggered by role change.
+ unless ($role =~ /^gr/) {
+ &Apache::longroup::group_changes($udom,$uname,$url,$role,$origend,
+ $origstart,$selfenroll,$context);
+ }
&courserolelog($role,$uname,$udom,$url,$origstart,$origend,$delflag,
$selfenroll,$context);
} elsif (($role eq 'li') || ($role eq 'dg') || ($role eq 'sc') ||
More information about the LON-CAPA-cvs
mailing list