From 2e9d9025da5396e655037ac2b003bd26685f6ea9 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 22 Jan 2020 10:26:00 +0000 Subject: [PATCH] Bug 24477: Require `takepayment` permission in pos/pay.pl When adding the point of sale take payment page in bug 23354 we missed the permission check script side along with adding the permission at install time (update was caught). Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Andrew Fuerste-Henry https://bugs.koha-community.org/show_bug.cgi?id=24478 --- pos/pay.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/pos/pay.pl b/pos/pay.pl index bb9e556e9c..fe9ee8703b 100755 --- a/pos/pay.pl +++ b/pos/pay.pl @@ -26,6 +26,7 @@ my ( $template, $loggedinuser, $cookie, $user_flags ) = get_template_and_user( query => $input, type => 'intranet', authnotrequired => 0, + flagsrequired => { cash_management => 'takepayment' }, } ); my $logged_in_user = Koha::Patrons->find($loggedinuser) or die "Not logged in"; -- 2.11.0