Lines 278-284
sub safe_to_delete {
Link Here
|
278 |
|
278 |
|
279 |
return "not_same_branch" |
279 |
return "not_same_branch" |
280 |
if defined C4::Context->userenv |
280 |
if defined C4::Context->userenv |
281 |
and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self ) ) |
281 |
and defined C4::Context->userenv->{number} |
|
|
282 |
and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self ); |
282 |
|
283 |
|
283 |
# check it doesn't have a waiting reserve |
284 |
# check it doesn't have a waiting reserve |
284 |
return "book_reserved" |
285 |
return "book_reserved" |
285 |
- |
|
|