[LON-CAPA-cvs] cvs: loncom(GCI_3) /interface loncreateuser.pm

raeburn raeburn@source.lon-capa.org
Sun, 05 Dec 2010 21:58:11 -0000


raeburn		Sun Dec  5 21:58:11 2010 EDT

  Modified files:              (Branch: GCI_3)
    /loncom/interface	loncreateuser.pm 
  Log:
  - Customization for GCI_3.
    - Suport for multiple Concept Inventories.
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.329.2.6 loncom/interface/loncreateuser.pm:1.329.2.7
--- loncom/interface/loncreateuser.pm:1.329.2.6	Mon Nov  8 19:52:01 2010
+++ loncom/interface/loncreateuser.pm	Sun Dec  5 21:58:11 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.329.2.6 2010/11/08 19:52:01 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.329.2.7 2010/12/05 21:58:11 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -980,7 +980,7 @@
             $response .= '<p class="LC_warning">'
                         .&mt("You are not authorized to create new $usertypetext{$usertype} users in this domain.")
                         .'<br />';
-            if ($ccdomain eq 'gcitest') {
+            if ($ccdomain =~ /^\w+citest$/) {
                 $response .= &mt('Enter a valid e-mail address as the username for the new user.').' '.&mt('Please contact the [_1]helpdesk[_2] for assistance.'
                              ,'<a href="'.$helplink.'">','</a>')
                              .'</p><br />';