From 0e26da2fc0e7e79ea11753f1f13a4e584e728b81 Mon Sep 17 00:00:00 2001
From: Chris Cormack <chrisc@catalyst.net.nz>
Date: Tue, 2 Apr 2013 19:48:34 +1300
Subject: [PATCH] [SIGNED-OFF] Bug 8278 : Follow up, fixing the permissions on
 cataloguing/ysearch.pl

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Comment: Works. No errors.

Without patch and normal staff user, logged out
With patch, normal staff, valid output.
---
 cataloguing/ysearch.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cataloguing/ysearch.pl b/cataloguing/ysearch.pl
index 8255016..9c69939 100755
--- a/cataloguing/ysearch.pl
+++ b/cataloguing/ysearch.pl
@@ -41,7 +41,7 @@ die() unless ($table eq "biblioitems");
 binmode STDOUT, ":encoding(UTF-8)";
 print $input->header( -type => 'text/plain', -charset => 'UTF-8' );
 
-my ( $auth_status, $sessionID ) = check_cookie_auth( $input->cookie('CGISESSID'), { cataloguing => '*' } );
+my ( $auth_status, $sessionID ) = check_cookie_auth( $input->cookie('CGISESSID'), { editcatalogue => '*' } );
 if ( $auth_status ne "ok" ) {
     exit 0;
 }
-- 
1.7.9.5