From 9aab8cf39f1f92e3918b247b32f5bd53940f4c4d Mon Sep 17 00:00:00 2001 From: Wainui Witika-Park Date: Wed, 15 Mar 2023 13:26:44 +1300 Subject: [PATCH] Revert "Bug 31643: Require only edit_catalogue, not full cataloging" This reverts commit e77fe4e5dff1c2d10b11730e2f58fa1cec8e7b92. --- svc/cataloguing/automatic_linker.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/svc/cataloguing/automatic_linker.pl b/svc/cataloguing/automatic_linker.pl index fbaf1bb4dc..a04ccfb8c9 100755 --- a/svc/cataloguing/automatic_linker.pl +++ b/svc/cataloguing/automatic_linker.pl @@ -28,11 +28,8 @@ my $input = CGI->new; print $input->header('application/json'); # Check the user's permissions -my ( $auth_status ) = - C4::Auth::check_cookie_auth( $input->cookie('CGISESSID'), { - editauthorities => 1, - editcatalogue => 'edit_catalogue' - }); +my ( $auth_status, $auth_sessid ) = + C4::Auth::check_cookie_auth( $input->cookie('CGISESSID'), { editauthorities => 1, editcatalogue => 1 } ); if ( $auth_status ne "ok" ) { print to_json( { status => 'UNAUTHORIZED' } ); exit 0; -- 2.39.5