Lines 264-270
sub safe_to_delete {
Link Here
|
264 |
|
264 |
|
265 |
return "not_same_branch" |
265 |
return "not_same_branch" |
266 |
if defined C4::Context->userenv |
266 |
if defined C4::Context->userenv |
267 |
and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self ) ) |
267 |
and defined C4::Context->userenv->{number} |
|
|
268 |
and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self ); |
268 |
|
269 |
|
269 |
# check it doesn't have a waiting reserve |
270 |
# check it doesn't have a waiting reserve |
270 |
return "book_reserved" |
271 |
return "book_reserved" |
271 |
- |
|
|