View | Details | Raw Unified | Return to bug 31643
Collapse All | Expand All

(-)a/svc/cataloguing/automatic_linker.pl (-2 / +4 lines)
Lines 29-35 print $input->header('application/json'); Link Here
29
29
30
# Check the user's permissions
30
# Check the user's permissions
31
my ( $auth_status ) =
31
my ( $auth_status ) =
32
  C4::Auth::check_cookie_auth( $input->cookie('CGISESSID'), { editauthorities => 1, editcatalogue => 1 } );
32
  C4::Auth::check_cookie_auth( $input->cookie('CGISESSID'), {
33
    editauthorities => 1,
34
    editcatalogue => 'edit_catalogue'
35
  });
33
if ( $auth_status ne "ok" ) {
36
if ( $auth_status ne "ok" ) {
34
    print to_json( { status => 'UNAUTHORIZED' } );
37
    print to_json( { status => 'UNAUTHORIZED' } );
35
    exit 0;
38
    exit 0;
36
- 

Return to bug 31643