Bug 24812: (bug 24081 follow-up) Add permission description

Bug 24081 added a discount permission to the accounts system but during
subsequent rebases, the description of that new permission got lot.

This patch restores the description.

Test plan
0/ Check that a checkbox without a description appears in the 'Manage
patrons patrons fines and fees' section of the 'Set permissions' page.
1/ Apply the patch
2/ Reload the page and note that the checkbox now preceeds a suitable
description.
3/ Signoff.

Bonus points: Check the permission works as described and hides the
'Discount' action button for staff who do not have the permission
enabled.

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2020-03-05 14:32:23 +00:00
parent 87f3e2d5e0
commit d28bf2de71
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 5 additions and 0 deletions

View File

@ -307,6 +307,11 @@
Remaining permissions for managing fines and fees
</span>
<span class="permissioncode">([% name | html %])</span>
[%- CASE 'discount' -%]
<span class="sub_permission discount_subpermission">
Discount debits for patrons
</span>
<span class="permissioncode">([% name | html %])</span>
[%- CASE 'payout' -%]
<span class="sub_permission payout_subpermission">
Payout credits to patrons