[LON-CAPA-cvs] cvs: loncom(GCI_3) /lonnet/perl lonnet.pm

raeburn raeburn@source.lon-capa.org
Fri, 15 Jan 2010 00:14:02 -0000


raeburn		Fri Jan 15 00:14:02 2010 EDT

  Modified files:              (Branch: GCI_3)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Customization for GCI_3.
    - Approval of self-enrollment in Innventory, triggers
      self-enrollment in both Inventory and Submissions course.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1048 loncom/lonnet/perl/lonnet.pm:1.1048.2.1
--- loncom/lonnet/perl/lonnet.pm:1.1048	Wed Dec 30 18:01:17 2009
+++ loncom/lonnet/perl/lonnet.pm	Fri Jan 15 00:14:01 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.1048.2.1 2010/01/15 00:14:01 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6263,6 +6263,10 @@
                     }
                 } elsif (($selfenroll == 1) && ($role eq 'st') && ($udom eq $env{'user.domain'}) && ($uname eq $env{'user.name'})) {
                     $refused = '';
+                } elsif (($selfenroll == 1) && ($role eq 'st') && ($cdom eq 'gci') && ($cnum eq '1H96711d710194bfegcil1')) {
+                    if ($env{'request.role'} eq 'cc./gci/9615072b469884921gcil1') {
+                        $refused = '';
+                    }
                 } elsif ($context eq 'requestcourses') {
                     my @possroles = ('st','ta','ep','in','cc','co');
                     if ((grep(/^\Q$role\E$/,@possroles)) && ($env{'user.name'} ne '' && $env{'user.domain'} ne '')) {