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>
tags/v20.11.00
Jonathan Druart 7 months ago
parent
commit
381d46341c
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      members/cancel-charge.pl

+ 5
- 1
members/cancel-charge.pl View File

@@ -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