--- loncom/interface/loncommon.pm 2020/09/28 17:45:08 1.1075.2.141.2.7 +++ loncom/interface/loncommon.pm 2020/09/29 19:02:00 1.1075.2.141.2.8 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1075.2.141.2.7 2020/09/28 17:45:08 raeburn Exp $ +# $Id: loncommon.pm,v 1.1075.2.141.2.8 2020/09/29 19:02:00 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -4704,7 +4704,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'}) { @@ -5027,6 +5028,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') {