Bug 32841: Fix cataloguing/value_builder/unimarc_field_123i.pl
[koha-ffzg.git] / circ / circulation-home.pl
index 7d24d79..239051d 100755 (executable)
 
 use Modern::Perl;
 use CGI qw ( -utf8 );
-use C4::Auth;
-use C4::Output;
+use C4::Auth qw( get_template_and_user );
+use C4::Output qw( output_html_with_http_headers );
 use C4::Context;
 use Koha::BiblioFrameworks;
+use Koha::Checkouts;
 
-my $query = new CGI;
+my $query = CGI->new;
 my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user(
     {
         template_name   => "circ/circulation-home.tt",
         query           => $query,
         type            => "intranet",
-        authnotrequired => 0,
         flagsrequired   => { circulate => "circulate_remaining_permissions" },
     }
 );
@@ -39,5 +39,4 @@ $template->param( fast_cataloging => 1 ) if Koha::BiblioFrameworks->find( 'FA' )
 
 $template->{'VARS'}->{'AllowOfflineCirculation'} = C4::Context->preference('AllowOfflineCirculation');
 
-
 output_html_with_http_headers $query, $cookie, $template->output;