--- loncom/interface/lonblockingmenu.pm 2014/06/12 00:33:41 1.13
+++ loncom/interface/lonblockingmenu.pm 2016/01/27 01:21:22 1.14.2.1
@@ -2,7 +2,7 @@
# Routines for configuring blocking of access to collaborative functions,
# and specific resources during an exam
#
-# $Id: lonblockingmenu.pm,v 1.13 2014/06/12 00:33:41 raeburn Exp $
+# $Id: lonblockingmenu.pm,v 1.14.2.1 2016/01/27 01:21:22 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -561,6 +561,7 @@ sub handler {
'
'.&mt('accessing content in LON-CAPA portfolios or blogs').''."\n".
''.&mt("generating printouts of $lctype content").''.
''.&mt("accessing $lctype content in specified folders or resources").''.
+ ''.&mt("changing user's own password").''.
''.
''.$lt{'blca'}.'
'.$lt{'pobl'}.'
'
);
@@ -913,6 +914,9 @@ sub get_block_choices {
if (ref($symb_ref) eq 'HASH') {
my %resources = map { $symb_ref->{$_} => 1; }
(split(/,/,$env{'form.docs_resources_'.$item}));
+ if (exists($resources{''})) {
+ delete($resources{''});
+ }
$blocklist->{$type}->{resources} = \%resources;
if (keys(%resources) > 0) {
$blockdocs = 1;
@@ -924,6 +928,9 @@ sub get_block_choices {
if (ref($map_ref) eq 'HASH') {
my %maps = map { $map_ref->{$_} => 1; }
(split(/,/,$env{'form.docs_maps_'.$item}));
+ if (exists($maps{''})) {
+ delete($maps{''});
+ }
$blocklist->{$type}->{maps} = \%maps;
if (keys(%maps) > 0) {
$blockdocs = 1;
@@ -1495,8 +1502,9 @@ sub blocktype_text {
'blogs' => 'Blogs',
'docs' => 'Content',
'printout' => 'Printouts',
+ 'passwd' => 'Password',
);
- my $typeorder = ['com','chat','boards','port','groups','blogs','printout','docs'];
+ my $typeorder = ['com','chat','boards','port','groups','blogs','printout','docs','passwd'];
return ($typeorder,\%types);
}