@@ -, +, @@ is not allowed to edit --- tools/batchMod.pl | 6 ++++++ 1 file changed, 6 insertions(+) --- a/tools/batchMod.pl +++ a/tools/batchMod.pl @@ -183,13 +183,19 @@ if ($op eq "action") { } # For each item + my $can_edit = {}; my $i = 1; foreach my $itemnumber(@itemnumbers){ $job->progress($i) if $runinbackground; + my $item = Koha::Items->find($itemnumber); next unless $item; # Should have been tested earlier, but just in case... my $itemdata = $item->unblessed; + + $can_edit->{ $item->homebranch } //= $patron->can_edit_item( $item->homebranch ); + next unless $can_edit->{ $item->homebranch }; + if ( $del ){ my $return = $item->safe_delete; if (ref($return)) { --