@@ -, +, @@ --- .../mysql/atomicupdate/bug_23354_permissions.perl | 13 +++++++++++++ .../intranet-tmpl/prog/en/includes/permissions.inc | 5 +++++ .../intranet-tmpl/prog/en/modules/intranet-main.tt | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_23354_permissions.perl --- a/installer/data/mysql/atomicupdate/bug_23354_permissions.perl +++ a/installer/data/mysql/atomicupdate/bug_23354_permissions.perl @@ -0,0 +1,13 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if ( CheckVersion($DBversion) ) { + + $dbh->do(qq{ + INSERT IGNORE permissions (module_bit, code, description) + VALUES + (25, 'takepayment', 'Access the point of sale page and take payments') + }); + + + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 23354 - Add point of sale permissions)\n"; +} --- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc @@ -676,5 +676,10 @@ Add, edit and archive cash registers ([% name | html %]) + [%- CASE 'takepayment' -%] + + Access the point of sale page and take payments + + ([% name | html %]) [%- END -%] [%- END -%] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -80,9 +80,11 @@