@@ -, +, @@
---
.../mysql/atomicupdate/bug_23355_permissions.perl | 12 ++++++++++++
.../intranet-tmpl/prog/en/includes/permissions.inc | 5 +++++
2 files changed, 17 insertions(+)
create mode 100644 installer/data/mysql/atomicupdate/bug_23355_permissions.perl
--- a/installer/data/mysql/atomicupdate/bug_23355_permissions.perl
+++ a/installer/data/mysql/atomicupdate/bug_23355_permissions.perl
@@ -0,0 +1,12 @@
+$DBversion = 'XXX'; # will be replaced by the RM
+if ( CheckVersion($DBversion) ) {
+
+ $dbh->do(qq{
+ INSERT IGNORE permissions (module_bit, code, description)
+ VALUES
+ (25, 'cashup_cash_registers', 'Perform cash register cashup action')
+ });
+
+ SetVersion($DBversion);
+ print "Upgrade to $DBversion done (Bug 23355 - Add cash register cashup permissions)\n";
+}
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
@@ -681,5 +681,10 @@
Access the point of sale page and take payments
([% name | html %])
+ [%- CASE 'cashup_cash_registers' -%]
+
+ Perform cash register cashup action
+
+ ([% name | html %])
[%- END -%]
[%- END -%]
--