LP#1966096: check permissions when deleting lineitem user/jeffdavis/lp1966096-delete-lineitem-perm-check
authorJeff Davis <jeff.davis@bc.libraries.coop>
Thu, 26 May 2022 21:43:58 +0000 (14:43 -0700)
committerJeff Davis <jeff.davis@bc.libraries.coop>
Thu, 26 May 2022 22:17:01 +0000 (15:17 -0700)
commit93d2557f3749f3731e8453951fd222b1fca0564b
treecde90af17712aec8a91fe86d52504c9f924013ff
parent874f426f8f37fea1c09b51b114f1eb8709f6dbf6
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem.pm