Bug 24080: Add updatecharge payout permission
Add a new subpermission called 'payout' to the 'updatecharges' permission group which will allow/prevent payout actions to be performed by staff. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
9bd650f98b
commit
6043b4fb24
3 changed files with 13 additions and 0 deletions
|
@ -19,7 +19,14 @@ if ( CheckVersion($DBversion) ) {
|
|||
INSERT IGNORE INTO account_offset_types ( type ) VALUES ('PAYOUT');
|
||||
});
|
||||
|
||||
$dbh->do(qq{
|
||||
INSERT IGNORE permissions (module_bit, code, description)
|
||||
VALUES
|
||||
(10, 'payout', 'Perform account payout action')
|
||||
});
|
||||
|
||||
SetVersion($DBversion);
|
||||
print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_debit_type)\n";
|
||||
print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_offset_type)\n";
|
||||
print "Upgrade to $DBversion done (Bug 24080 - Add accounts payout permission)\n";
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
|
|||
( 9, 'edit_items', 'Edit items'),
|
||||
( 9, 'edit_items_restricted', 'Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required)'),
|
||||
( 9, 'delete_all_items', 'Delete all items at once'),
|
||||
(10, 'payout', 'Perform account payout action'),
|
||||
(10, 'writeoff', 'Write off fines and fees'),
|
||||
(10, 'remaining_permissions', 'Remaining permissions for managing fines and fees'),
|
||||
(11, 'currencies_manage', 'Manage currencies and exchange rates'),
|
||||
|
|
|
@ -304,6 +304,11 @@
|
|||
Remaining permissions for managing fines and fees
|
||||
</span>
|
||||
<span class="permissioncode">([% name | html %])</span>
|
||||
[%- CASE 'payout' -%]
|
||||
<span class="sub_permission payout_subpermission">
|
||||
Payout credits to patrons
|
||||
</span>
|
||||
<span class="permissioncode">([% name | html %])</span>
|
||||
[%- CASE 'writeoff' -%]
|
||||
<span class="sub_permission writeoff_subpermission">
|
||||
Write off fines and fees
|
||||
|
|
Loading…
Reference in a new issue