Merge branch 'MT1105' into public_master
[koha.git] / svc / authentication
index f36d133..b9d3047 100755 (executable)
@@ -19,6 +19,8 @@
 #
 
 use strict;
+use warnings;
+
 use CGI;
 use C4::Auth qw/check_api_auth/;
 use XML::Simple;
@@ -41,7 +43,7 @@ my $query = new CGI;
 # web browser, but instead should be stored and submitted by biblios.
 
 
-my ($status, $cookie, $sessionID) = check_api_auth($query, { editcatalogue => 1} );
+my ($status, $cookie, $sessionID) = check_api_auth($query, { editcatalogue => 'edit_catalogue'} );
 
 if ($status eq "ok") {
     print $query->header(-type => 'text/xml', cookie => $cookie);