Revert "Bug 31643: Require only edit_catalogue, not full cataloging"

This reverts commit e77fe4e5df.
This commit is contained in:
Wainui Witika-Park 2023-03-15 13:26:44 +13:00
parent d165b018a1
commit 9aab8cf39f
1 changed files with 2 additions and 5 deletions

View File

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