Bug 24481: Move manage_cash_registers to parameters permission

This patch moves the manage_cash_registers subpermission to the more
appropriate location under 'parameters'.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2020-01-22 14:41:21 +00:00
parent 59a75a60cc
commit 637afc8f6d
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,15 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do(qq{
UPDATE
`permissions`
SET
`module_bit` = 3
WHERE
`code` = 'manage_cash_registers'
});
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 24481 - Move permission to correct module_bit)\n";
}

View file

@ -17,6 +17,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
( 3, 'manage_patron_attributes', 'Manage extended patron attributes'), ( 3, 'manage_patron_attributes', 'Manage extended patron attributes'),
( 3, 'manage_transfers', 'Manage library transfer limits and transport cost matrix'), ( 3, 'manage_transfers', 'Manage library transfer limits and transport cost matrix'),
( 3, 'manage_item_circ_alerts', 'Manage item circulation alerts'), ( 3, 'manage_item_circ_alerts', 'Manage item circulation alerts'),
( 3, 'manage_cash_registers', 'Add and remove cash registers'),
( 3, 'manage_cities', 'Manage cities and towns'), ( 3, 'manage_cities', 'Manage cities and towns'),
( 3, 'manage_marc_frameworks', 'Manage MARC bibliographic and authority frameworks'), ( 3, 'manage_marc_frameworks', 'Manage MARC bibliographic and authority frameworks'),
( 3, 'manage_classifications', 'Manage classification sources'), ( 3, 'manage_classifications', 'Manage classification sources'),
@ -120,6 +121,5 @@ INSERT INTO permissions (module_bit, code, description) VALUES
(23, 'self_checkout_module', 'Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID'), (23, 'self_checkout_module', 'Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID'),
(24, 'manage_rotas', 'Create, edit and delete rotas'), (24, 'manage_rotas', 'Create, edit and delete rotas'),
(24, 'manage_rota_items', 'Add and remove items from rotas'), (24, 'manage_rota_items', 'Add and remove items from rotas'),
(25, 'manage_cash_registers', 'Add and remove cash registers'),
(25, 'takepayment', 'Access the point of sale page and take payments') (25, 'takepayment', 'Access the point of sale page and take payments')
; ;