From: erickson Date: Fri, 13 Oct 2006 19:43:23 +0000 (+0000) Subject: fixed field name on copy note X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=56e18173b5f87dc9eef41d7107c89a9a1ffddb0b;p=evergreen%2Fpines.git fixed field name on copy note git-svn-id: svn://svn.open-ils.org/ILS/trunk@6469 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm index 1203fe6ed3..d562c5e37e 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm @@ -779,7 +779,7 @@ sub delete_copy_note { if( $note->creator ne $e->requestor->id ) { return $e->die_event unless - $e->allowed('DELETE_COPY_NOTE', $note->copy->call_number->owning_lib); + $e->allowed('DELETE_COPY_NOTE', $note->owning_copy->call_number->owning_lib); } $e->delete_asset_copy_note($note) or return $e->die_event;