From 40d843f654959aaf220411d6b8c3c68e9ad7f743 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 13 Feb 2024 10:49:17 +0100 Subject: [PATCH] Bug 36076: paycollect.tt add permission checks for manual credit and invoice In members/pay.tt one can see permission checks for manual credit and invoice : CAN_user_updatecharges_manual_invoice CAN_user_updatecharges_manual_credit This is missing from members/paycollect.tt. HTML is also missing classes manualcredit and manualinvoice. Test plan : 1) Create a user with permissions to manage accounting but without manual_invoice and manual_credit 2) Go to a patron account with an invoice 3) Click on "Make a payment", you dont see tabs manual credit/invoice 4) Click on "Pay" in "Actions" column => Without patch you see tabs manual credit/invoice => With patch you do not see them --- .../prog/en/modules/members/paycollect.tt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt index 83218e24b5..da51c5ce3c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt @@ -105,12 +105,16 @@ -
  • - Create manual invoice -
  • -
  • - Create manual credit -
  • + [% IF CAN_user_updatecharges_manual_invoice %] + + [% END %] + [% IF CAN_user_updatecharges_manual_credit %] + + [% END %]
    -- 2.43.0