@@ -, +, @@
---
installer/data/mysql/atomicupdate/bug_24846.perl | 11 +++++++++++
installer/data/mysql/userpermissions.sql | 1 +
.../intranet-tmpl/prog/en/includes/permissions.inc | 5 +++++
3 files changed, 17 insertions(+)
create mode 100644 installer/data/mysql/atomicupdate/bug_24846.perl
--- a/installer/data/mysql/atomicupdate/bug_24846.perl
+++ a/installer/data/mysql/atomicupdate/bug_24846.perl
@@ -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";
+}
--- a/installer/data/mysql/userpermissions.sql
+++ a/installer/data/mysql/userpermissions.sql
@@ -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'),
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
@@ -407,6 +407,11 @@
Delete old borrowers and anonymize circulation history (deletes borrower reading history)
([% name | html %])
+ [%- CASE 'batch_extend_due_dates' -%]
+
+ Perform batch extend due dates
+
+ ([% name | html %])
[%- CASE 'edit_calendar' -%]
Define days when the library is closed
--