]> git.koha-community.org Git - koha.git/commit
Bug 27811: Hide payment buttons if not enough permission
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 22 Apr 2021 12:20:27 +0000 (14:20 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 5 May 2021 13:51:59 +0000 (15:51 +0200)
commit7221b6860cee3a723817e5195bc5faa331b03b47
tree933a4edff946acb9adff3b69d6be98d1b070ca6b
parentebe12231a4d1a3ec56b44b1929c122f4afcdba1b
Bug 27811: Hide payment buttons if not enough permission

If the logged in librarian does not have the updatecharges >
remaining_permissions subpermission, we should hide the 2 "Make payment"
and "Pay all fines" button from the patron detail/circ page.

Test plan:
1 - Grant an account circulation/staffaccess permissions and any subpermissions in updatechagres but NOT 'remaining_permissions'
2 - Add some charges to a patron account
3 - Sign in with the account created in #1
4 - Bring up the patron you added charges to
=> The two buttons are not displayed

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ffbb0fd3c2238991baa09728bc0da64610de6bfc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/blocked-fines.inc