[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Thu Feb 14 11:52:12 EST 2013
raeburn Thu Feb 14 16:52:12 2013 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- DC's selection of temporary adhoc role does not need to be preserved in
nohist_userroles.db.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1214 loncom/lonnet/perl/lonnet.pm:1.1215
--- loncom/lonnet/perl/lonnet.pm:1.1214 Fri Feb 8 16:07:43 2013
+++ loncom/lonnet/perl/lonnet.pm Thu Feb 14 16:52:11 2013
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1214 2013/02/08 16:07:43 raeburn Exp $
+# $Id: lonnet.pm,v 1.1215 2013/02/14 16:52:11 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -5070,9 +5070,11 @@
}
sub set_arearole {
- my ($trole,$area,$tstart,$tend,$domain,$username) = @_;
+ my ($trole,$area,$tstart,$tend,$domain,$username,$nolog) = @_;
+ unless ($nolog) {
# log the associated role with the area
- &userrolelog($trole,$username,$domain,$area,$tstart,$tend);
+ &userrolelog($trole,$username,$domain,$area,$tstart,$tend);
+ }
return ('user.role.'.$trole.'.'.$area => $tstart.'.'.$tend);
}
@@ -5341,7 +5343,7 @@
my $area = '/'.$dcdom.'/'.$pickedcourse;
my $spec = $role.'.'.$area;
my %userroles = &set_arearole($role,$area,'','',$env{'user.domain'},
- $env{'user.name'});
+ $env{'user.name'},1);
my %ccrole = ();
&standard_roleprivs(\%ccrole,$role,$dcdom,$spec,$pickedcourse,$area);
my ($author,$adv)= &set_userprivs(\%userroles,\%ccrole);
More information about the LON-CAPA-cvs
mailing list