Bugzilla – Attachment 113113 Details for
Bug 24603
Allow to cancel charges in patron accounting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24603: Adjust permissions for cancel-charge.pl
Bug-24603-Adjust-permissions-for-cancel-chargepl.patch (text/plain), 986 bytes, created by
Jonathan Druart
on 2020-11-05 13:41:02 UTC
(
hide
)
Description:
Bug 24603: Adjust permissions for cancel-charge.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-11-05 13:41:02 UTC
Size:
986 bytes
patch
obsolete
>From 1ad179a3311f03b4d11d51232ee55c8b76698c6d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 5 Nov 2020 14:39:53 +0100 >Subject: [PATCH] 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) >--- > members/cancel-charge.pl | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/members/cancel-charge.pl b/members/cancel-charge.pl >index 91184036e9..4c655fa174 100755 >--- a/members/cancel-charge.pl >+++ b/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); > >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24603
:
98534
|
98551
|
102005
|
106772
|
111217
|
111218
|
111255
|
111256
|
111794
|
111795
|
111796
|
111797
|
111914
|
113048
|
113049
|
113050
|
113051
|
113052
| 113113 |
113114