Bug 28759: limit accessibility for "Manage API keys"
[koha-ffzg.git] / tools / ajax-inventory.pl
index 2aeda40..a8c8c9d 100755 (executable)
@@ -2,10 +2,10 @@
 
 use Modern::Perl;
 use CGI qw ( -utf8 );
-use C4::Auth;
+use C4::Auth qw( check_api_auth );
 use C4::Items qw( ModDateLastSeen );
 
-my $input = new CGI;
+my $input = CGI->new;
 
 # Authentication
 my ($status, $cookie, $sessionId) = C4::Auth::check_api_auth($input, { tools => 'inventory' });