Bugzilla – Attachment 141200 Details for
Bug 31643
Link authorities automatically requires ALL cataloging and authorities permissions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31643: Require only edit_catalogue, not full cataloging
Bug-31643-Require-only-editcatalogue-not-full-cata.patch (text/plain), 1.38 KB, created by
Katrin Fischer
on 2022-10-01 23:05:11 UTC
(
hide
)
Description:
Bug 31643: Require only edit_catalogue, not full cataloging
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-10-01 23:05:11 UTC
Size:
1.38 KB
patch
obsolete
>From 725caacdf95d37fe513330003e7ab91419df0bfc Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 28 Sep 2022 18:59:41 +0000 >Subject: [PATCH] Bug 31643: Require only edit_catalogue, not full cataloging > >To test: >1 - Grant a patron: catalogue, edit_catalogue, and editauthorities permissions >2 - Log in to staff client >3 - Browse to: http://localhost:8081/cgi-bin/koha/svc/cataloguing/automatic_linker.pl >4 - UNAUTHORIZED >5 - Apply patch, restart all >6 - Log in and go to link again >7 - status "OK" > >Signed-off-by: Catrina <catrina@bywatersolutions.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > svc/cataloguing/automatic_linker.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/svc/cataloguing/automatic_linker.pl b/svc/cataloguing/automatic_linker.pl >index 17159d9686..228e01f402 100755 >--- a/svc/cataloguing/automatic_linker.pl >+++ b/svc/cataloguing/automatic_linker.pl >@@ -29,7 +29,10 @@ print $input->header('application/json'); > > # Check the user's permissions > my ( $auth_status ) = >- C4::Auth::check_cookie_auth( $input->cookie('CGISESSID'), { editauthorities => 1, editcatalogue => 1 } ); >+ C4::Auth::check_cookie_auth( $input->cookie('CGISESSID'), { >+ editauthorities => 1, >+ editcatalogue => 'edit_catalogue' >+ }); > if ( $auth_status ne "ok" ) { > print to_json( { status => 'UNAUTHORIZED' } ); > exit 0; >-- >2.30.2
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 31643
:
141067
|
141170
| 141200