Browse Source

Bug 24603: Adjust permissions for cancel-charge.pl

members/cancel-charge.pl should have the same permissions check than boraccount
(borrowers => edit_borrowers was missing)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
20.11.x
Jonathan Druart 12 months ago
parent
commit
381d46341c
  1. 6
      members/cancel-charge.pl

6
members/cancel-charge.pl

@ -25,7 +25,11 @@ use Koha::Token;
my $cgi = CGI->new;
my $authnotrequired = 0;
my $flags = { updatecharges => 'remaining_permissions' };
my $flags = {
borrowers => 'edit_borrowers',
updatecharges => 'remaining_permissions'
};
my $type = 'intranet';
my ($user, $cookie) = C4::Auth::checkauth($cgi, $authnotrequired, $flags, $type);

Loading…
Cancel
Save