--- loncom/auth/switchserver.pm 2018/12/02 13:56:10 1.45 +++ loncom/auth/switchserver.pm 2018/12/08 15:16:03 1.46 @@ -1,7 +1,7 @@ # The LearningOnline Network # Switch Servers Handler # -# $Id: switchserver.pm,v 1.45 2018/12/02 13:56:10 raeburn Exp $ +# $Id: switchserver.pm,v 1.46 2018/12/08 15:16:03 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -149,8 +149,8 @@ sub handler { } elsif ($env{'form.role'} =~ m{^[ac]a\./($match_domain)/($match_username)$}) { my ($audom,$auname) = ($1,$2); if (&Apache::lonnet::homeserver($auname,$audom) eq $env{'form.otherserver'}) { - if ((&Apache::lonnet::will_trust('othcoau',$audom,$env{'user.domain'})) && - (&Apache::lonnet::will_trust('coremau',$env{'user.domain'},$audom))) { + if ((&Apache::lonnet::will_trust('othcoau',$env{'user.domain'},$audom)) && + (&Apache::lonnet::will_trust('coaurem',$audom,$env{'user.domain'}))) { $skip_canhost_check = 1; } }