Koha/koha-tmpl
Jonathan Druart ffbb0fd3c2 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>
2021-04-30 17:07:31 +02:00
..
intranet-tmpl Bug 27811: Hide payment buttons if not enough permission 2021-04-30 17:07:31 +02:00
opac-tmpl Bug 28193: (follow-up) Correct OpacLoginInstructions in login modal 2021-04-27 16:23:49 +02:00