Diff for /loncom/interface/loncreateuser.pm between versions 1.184 and 1.184.2.1

version 1.184, 2007/09/12 23:26:25 version 1.184.2.1, 2007/10/03 13:45:58
Line 1014  END Line 1014  END
             $loginscript  = &Apache::loncommon::authform_header(%param);              $loginscript  = &Apache::loncommon::authform_header(%param);
  }   }
  # Check for a bad authentication type   # Check for a bad authentication type
         unless ($currentauth=~/^krb(4|5):/ or          if ($currentauth !~ /^(krb4|krb5|unix|internal|localauth):/) { 
  $currentauth=~/^unix:/ or              # bad authentication scheme
  $currentauth=~/^internal:/ or  
  $currentauth=~/^localauth:/  
  ) { # bad authentication scheme  
     if (&Apache::lonnet::allowed('mau',$ccdomain)) {      if (&Apache::lonnet::allowed('mau',$ccdomain)) {
                 &initialize_authen_forms();                  &initialize_authen_forms();
  my %lt=&Apache::lonlocal::texthash(   my %lt=&Apache::lonlocal::texthash(
Line 1113  $lt{'yodo'} $lt{'ifch'}: $ccdomain Line 1110  $lt{'yodo'} $lt{'ifch'}: $ccdomain
 ENDNOPRIV  ENDNOPRIV
                 }                   } 
             }              }
             if (&Apache::lonnet::allowed('mpq',$env{'request.role.domain'})) {  
                 # Current user has quota modification privileges  
                 $r->print(&portfolio_quota($ccuname,$ccdomain));  
             }  
         }  ## End of "check for bad authentication type" logic          }  ## End of "check for bad authentication type" logic
           if (&Apache::lonnet::allowed('mpq',$ccdomain)) {
               # Current user has quota modification privileges
               $r->print(&portfolio_quota($ccuname,$ccdomain));
           } elsif (&Apache::lonnet::allowed('mpq',$env{'request.role.domain'})) {
               my %lt=&Apache::lonlocal::texthash(
                   'dska'  => "Disk space allocated to user's portfolio files",
                   'youd'  => "You do not have privileges to modify the portfolio quota for this user.",
                   'ichr'  => "If a change is required, contact a domain coordinator for the domain",
               );
               $r->print(<<ENDNOPORTPRIV);
   <hr />
   <h3>$lt{'dska'}</h3>
   $lt{'youd'} $lt{'ichr'}: $ccdomain
   ENDNOPORTPRIV
           }
     } ## End of new user/old user logic      } ## End of new user/old user logic
     $r->print('<hr /><h3>'.&mt('Add Roles').'</h3>');      $r->print('<hr /><h3>'.&mt('Add Roles').'</h3>');
 #  #

Removed from v.1.184  
changed lines
  Added in v.1.184.2.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>