]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1966096: check permissions when deleting lineitem
authorJeff Davis <jeff.davis@bc.libraries.coop>
Thu, 26 May 2022 21:43:58 +0000 (14:43 -0700)
committerJane Sandberg <js7389@princeton.edu>
Mon, 13 Nov 2023 21:31:42 +0000 (13:31 -0800)
commit68831fa0227e69442c22c1b1ed401498deeeee00
tree88b987180ad237e336544e8bd0f4d296b19c21a4
parent93326bcbd288d667b6c6e7900ef02df5e5fb38e8
LP#1966096: check permissions when deleting lineitem

Hitherto EG has only prevented you from deleting a lineitem if it's
attached to a picklist belonging to someone else (in which case the
deletion would silently fail).  This commit checks whether you have the
CREATE_PURCHASE_ORDER perm if the line item is attached to a purchase
order, or else the CREATE_PICKLIST perm if the line item is attached to
a picklist.

Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
Signed-off-by: Eva Cerniňáková <cerninakova@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem.pm