Bug 24846: Add new permission batch_extend_due_dates

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-03-16 11:45:15 +01:00 committed by Martin Renvoize
parent 44e6f6d9eb
commit 48bfabbe05
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,11 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do(qq{
INSERT IGNORE permissions (module_bit, code, description)
VALUES
(13, 'batch_extend_due_dates', 'Perform batch extend due dates')
});
SetVersion($DBversion);
print "Upgrade to $DBversion done (Bug 24846 - Add a new permission for new tool batch extend due dates)\n";
}

View file

@ -79,6 +79,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
(13, 'import_patrons', 'Import patron data'),
(13, 'edit_patrons', 'Perform batch modification of patrons'),
(13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower reading history)'),
(13, 'batch_extend_due_dates', 'Perform batch extend due dates'),
(13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'),
(13, 'schedule_tasks', 'Schedule tasks to run'),
(13, 'items_batchmod', 'Perform batch modification of items'),

View file

@ -407,6 +407,11 @@
Delete old borrowers and anonymize circulation history (deletes borrower reading history)
</span>
<span class="permissioncode">([% name | html %])</span>
[%- CASE 'batch_extend_due_dates' -%]
<span class="sub_permission batch_extend_due_dates_subpermission">
Perform batch extend due dates
</span>
<span class="permissioncode">([% name | html %])</span>
[%- CASE 'edit_calendar' -%]
<span class="sub_permission edit_calendar_subpermission">
Define days when the library is closed