From 2c76f11a7599b6d796ee06ef0a9eedb5a1525b24 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). --- 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.20.1