Bug 34844: Add manage_item_editor_templates to userpermissions.sql

Test Plan:
1) perl /kohadevbox/misc4dev/run_tests.pl --run-db-upgrade-only; prove t/Koha/Auth/Permissions.t
2) Note failure
3) Apply this patch
4) perl /kohadevbox/misc4dev/run_tests.pl --run-db-upgrade-only; prove t/Koha/Auth/Permissions.t
5) Tests pass!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2023-09-20 09:31:47 -04:00 committed by Tomas Cohen Arazi
parent 057b00f349
commit 5d2f3ffe7d
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 2 additions and 0 deletions

View file

@ -56,6 +56,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
( 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'),
( 9, 'manage_item_groups', 'Create, update and delete item groups, add or remove items from a item groups'),
( 9, 'manage_item_editor_templates', 'Update and delete item editor template owned by others'),
( 9, 'edit_any_item', 'Edit any item regardless of home library'),
(10, 'payout', 'Perform account payout action'),
(10, 'refund', 'Perform account refund action'),

View file

@ -159,6 +159,7 @@ subtest 'superlibrarian tests' => sub {
'CAN_user_editcatalogue_edit_items' => 1,
'CAN_user_editcatalogue_fast_cataloging' => 1,
'CAN_user_editcatalogue_manage_item_groups' => 1,
'CAN_user_editcatalogue_manage_item_editor_templates' => 1,
'CAN_user_editcatalogue' => 1,
'CAN_user_ill' => 1,
'CAN_user_lists_delete_public_lists' => 1,