From fadbd570a133b46f525767b10a33a9877806cd80 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 13 Sep 2019 14:48:49 +0100 Subject: [PATCH] Bug 23355: Add cashup permissions Signed-off-by: Kyle M Hall --- .../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 diff --git a/installer/data/mysql/atomicupdate/bug_23355_permissions.perl b/installer/data/mysql/atomicupdate/bug_23355_permissions.perl new file mode 100644 index 0000000000..b43f0dfdd5 --- /dev/null +++ b/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"; +} diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc index b66d9bd400..ff0d829739 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc @@ -696,5 +696,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 -%] -- 2.20.1