--- loncom/interface/lonblockingstatus.pm 2020/09/29 19:55:00 1.14.2.4 +++ loncom/interface/lonblockingstatus.pm 2021/01/02 21:07:36 1.19 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # displays the blocking status table # -# $Id: lonblockingstatus.pm,v 1.14.2.4 2020/09/29 19:55:00 raeburn Exp $ +# $Id: lonblockingstatus.pm,v 1.19 2021/01/02 21:07:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -44,7 +44,7 @@ sub handler { return OK if $r->header_only; my (%activities,$activity,$origurl,$origsymb); - map { $activities{$_} = 1; } ('boards','chat','com','blogs','groups','port','printout','docs','passwd'); + map { $activities{$_} = 1; } ('boards','chat','com','blogs','about','groups','port','printout','docs','grades','passwd','search'); # determine what kind of blocking we want details for &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['activity','url','symb']); @@ -53,7 +53,8 @@ sub handler { my $title = 'Communication Blocking Status Information'; if (($activity eq 'docs') || ($activity eq 'printout') || - ($activity eq 'passwd')) { + ($activity eq 'grades') || ($activity eq 'passwd') || + ($activity eq 'search')) { $title = 'Blocking Status Information'; if ($activity eq 'docs') { $origurl = $env{'form.url'}; @@ -83,7 +84,7 @@ sub blockpage { # we're trying to look at. This information is passed via query string. my ($uname, $udom); - if (($activity eq 'port') || + if (($activity eq 'port') || ($activity eq 'about') || (($activity eq 'passwd') && ($env{'user.name'} eq 'public') && ($env{'user.domain'} eq 'public'))) { &Apache::loncommon::get_unprocessed_cgi( $ENV{'QUERY_STRING'}, ['udom', 'uname'] ); @@ -95,6 +96,11 @@ sub blockpage { &mt('Information about the owner of the portfolio files you were trying to view was missing or invalid.'). '
'. &mt('Without valid owner information, the reason why access is blocked can not be determined'); + } elsif ($activity eq 'about') { + return ''. + &mt('The username and/or domain for the User Information page you were trying to view was missing or invalid.'). + '
'. + &mt('Without valid information, the reason why access is blocked can not be determined'); } else { return ''. &mt('Information about the username and/or domain for which you were trying to reset a password was missing or invalid.'). @@ -150,10 +156,13 @@ sub blockpage { chat => 'Chat Room', com => 'This message', blogs => 'Blogs', + about => 'User information pages', groups => 'Groups in this course', printout => 'Printout generation', docs => 'Course Content', passwd => 'Changing of passwords', + grades => 'Course Gradebook', + search => 'Content Search', ); if ($activity eq 'groups' || $activity eq 'boards') { @@ -161,6 +170,7 @@ sub blockpage { $descs{'boards'} = 'Discussion posts in this community'; $descs{'groups'} = 'Groups in this community'; $descs{'docs'} = 'Community Content'; + $descs{'grades'} = 'Community Gradebook'; } } @@ -184,7 +194,9 @@ sub blockpage { . ' view will be unavailable between [_1] and [_2] because' . ' access to selected '.$description.' is being blocked.' ,$showstart, $showend); - } elsif (($activity eq 'printout') || ($activity eq 'passwd')) { + } elsif (($activity eq 'printout') || ($activity eq 'passwd') || + ($activity eq 'grades') || ($activity eq 'search') || + ($activity eq 'about')) { $output = mt( $description . ' will be unavailable between [_1] and [_2] because' . ' this functionality is being blocked.'