Diff for /loncom/lonnet/perl/lonnet.pm between versions 1.641 and 1.642

version 1.641, 2005/06/17 17:09:59 version 1.642, 2005/06/17 21:04:40
Line 2969  sub allowed { Line 2969  sub allowed {
 # If this is generating or modifying users, exit with special codes  # If this is generating or modifying users, exit with special codes
   
     if (':csu:cdc:ccc:cin:cta:cep:ccr:cst:cad:cli:cau:cdg:cca:'=~/\:\Q$priv\E\:/) {      if (':csu:cdc:ccc:cin:cta:cep:ccr:cst:cad:cli:cau:cdg:cca:'=~/\:\Q$priv\E\:/) {
    if ($priv eq 'cca') {
       my ($audom,$auname)=split('/',$uri);
       if (($auname ne $env{'user.name'} && $env{'request.role'} !~ /^dc\./) ||
    (($audom ne $env{'user.domain'} && $env{'request.role'} !~ /^dc\./) &&
    ($audom ne $env{'request.role.domain'}))) { return ''; }
    }
  return $thisallowed;   return $thisallowed;
     }      }
 #  #

Removed from v.1.641  
changed lines
  Added in v.1.642


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