@@ -, +, @@ permission and has not added any items to that list --- Koha/Virtualshelf.pm | 6 ++++++ 1 file changed, 6 insertions(+) --- a/Koha/Virtualshelf.pm +++ a/Koha/Virtualshelf.pm @@ -273,6 +273,12 @@ sub can_biblios_be_removed { and ( $self->owner == $borrowernumber or $self->allow_delete_own or $self->allow_delete_other ); + my @shelf_contents = Koha::Virtualshelfcontents->search({ shelfnumber => $self->shelfnumber }); + foreach my $item ( @shelf_contents ) { + if ( $item->borrowernumber == $borrowernumber ) { + return 1; + } + } return 0; } --