--- loncom/interface/loncommon.pm 2020/08/10 19:28:21 1.1345 +++ loncom/interface/loncommon.pm 2020/09/22 12:19:15 1.1346 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1345 2020/08/10 19:28:21 raeburn Exp $ +# $Id: loncommon.pm,v 1.1346 2020/09/22 12:19:15 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5172,7 +5172,8 @@ sub blockcheck { if (($activity eq 'boards' || $activity eq 'chat' || $activity eq 'groups' || $activity eq 'printout' || - $activity eq 'reinit' || $activity eq 'alert') && + $activity eq 'search' || $activity eq 'reinit' || + $activity eq 'alert') && ($env{'request.course.id'})) { foreach my $key (keys(%live_courses)) { if ($key ne $env{'request.course.id'}) { @@ -5491,6 +5492,8 @@ END_MYBLOCK $text = &mt('Password Changing Blocked'); } elsif ($activity eq 'grades') { $text = &mt('Gradebook Blocked'); + } elsif ($activity eq 'search') { + $text = &mt('Search Blocked'); } elsif ($activity eq 'alert') { $text = &mt('Checking Critical Messages Blocked'); } elsif ($activity eq 'reinit') {