Diff for /loncom/lonnet/perl/lonnet.pm between versions 1.1409 and 1.1411

version 1.1409, 2019/04/29 22:19:45 version 1.1411, 2019/07/18 18:28:58
Line 1082  sub find_existing_session { Line 1082  sub find_existing_session {
     return;      return;
 }  }
   
   sub delusersession {
       my ($lonid,$udom,$uname) = @_;
       my $uprimary_id = &domain($udom,'primary');
       my $uintdom = &internet_dom($uprimary_id);
       my $intdom = &internet_dom($lonid);
       my $serverhomedom = &host_domain($lonid);
       if (($uintdom ne '') && ($uintdom eq $intdom)) {
           return &reply(join(':','delusersession',
                               map {&escape($_)} ($udom,$uname)),$lonid);
       }
       return;
   }
   
 # check if user's browser sent load balancer cookie and server still has session  # check if user's browser sent load balancer cookie and server still has session
 # and is not overloaded.  # and is not overloaded.
 sub check_for_balancer_cookie {  sub check_for_balancer_cookie {
Line 8089  sub allowed { Line 8102  sub allowed {
                 ($env{'course.'.$env{'request.course.id'}.'.internal.courseowner'} eq $env{'user.name'}.':'.$env{'user.domain'})) {                  ($env{'course.'.$env{'request.course.id'}.'.internal.courseowner'} eq $env{'user.name'}.':'.$env{'user.domain'})) {
                 my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};                  my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};
                 if ($cdom ne '') {                  if ($cdom ne '') {
                     my %passwdconf = &Apache::lonnet::get_passwdconf($cdom);                      my %passwdconf = &get_passwdconf($cdom);
                     if ($passwdconf{'crsownerchg'}) {                      if (ref($passwdconf{'crsownerchg'}) eq 'HASH') {
                         $thisallowed.=$rem;                          if (ref($passwdconf{'crsownerchg'}{'by'}) eq 'ARRAY') {
                               if (@{$passwdconf{'crsownerchg'}{'by'}}) {
                                   my @inststatuses = split(':',$env{'environment.inststatus'});
                                   unless (@inststatuses) {
                                       @inststatuses = ('default');
                                   }
                                   foreach my $status (@inststatuses) {
                                       if (grep(/^\Q$status\E$/,@{$passwdconf{'crsownerchg'}{'by'}})) {
                                           $thisallowed.=$rem;
                                       }
                                   }
                               }
                           }
                     }                      }
                 }                  }
             }              }

Removed from v.1.1409  
changed lines
  Added in v.1.1411


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