--- loncom/interface/lonmenu.pm 2022/05/29 03:19:00 1.521 +++ loncom/interface/lonmenu.pm 2022/06/08 01:42:20 1.522 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.521 2022/05/29 03:19:00 raeburn Exp $ +# $Id: lonmenu.pm,v 1.522 2022/06/08 01:42:20 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1949,8 +1949,17 @@ sub check_for_rcrs { if (!$showreqcrs) { foreach my $type (@reqtypes) { if ($env{'environment.reqcrsotherdom.'.$type} ne '') { - $showreqcrs = 1; - last; + my @domains = split(',',$env{'environment.reqcrsotherdom.'.$type}); + foreach my $entry (@domains) { + my ($extdom,$extopt) = split(':',$entry); + if (&Apache::lonnet::will_trust('reqcrs',$env{'user.domain'},$extdom)) { + $showreqcrs = 1; + last; + } + } + if ($showreqcrs) { + last; + } } } }