[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn@source.lon-capa.org
Sat, 16 Jan 2010 13:46:06 -0000
raeburn Sat Jan 16 13:46:06 2010 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- Remove duplicate code.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1048 loncom/lonnet/perl/lonnet.pm:1.1049
--- loncom/lonnet/perl/lonnet.pm:1.1048 Wed Dec 30 18:01:17 2009
+++ loncom/lonnet/perl/lonnet.pm Sat Jan 16 13:46:05 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1048 2009/12/30 18:01:17 raeburn Exp $
+# $Id: lonnet.pm,v 1.1049 2010/01/16 13:46:05 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4038,13 +4038,6 @@
);
my $spec=$$role.'.'.$$where;
my ($tdummy,$tdomain,$trest)=split(/\//,$$where);
- if ($$role eq 'gr') {
- my %rolehash = &get('roles',[$$where.'_'.$$role],$env{'user.domain'},
- $env{'user.name'})=@_;
- my ($trole) = split('_',$role,1);
- (undef,my $group_privs) = split(/\//,$trole);
- $group_privs = &unescape($group_privs);
- }
if ($$role =~ /^cr\//) {
&custom_roleprivs(\%allroles,$$role,$tdomain,$trest,$spec,$$where);
} elsif ($$role eq 'gr') {