Bug 3150: Move emails for sending cart and list contents to notices
[koha-ffzg.git] / circ / add_message.pl
index 67a6844..ee90af3 100755 (executable)
@@ -21,19 +21,17 @@ use Modern::Perl;
 
 use CGI qw ( -utf8 );
 
-use C4::Auth;
+use C4::Auth qw( get_template_and_user );
 use C4::Output;
 use Koha::Patron::Message;
 
-my $input = new CGI;
+my $input = CGI->new;
 
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     {   template_name   => "circ/circulation.tt",
         query           => $input,
         type            => "intranet",
-        authnotrequired => 0,
         flagsrequired   => { borrowers => 'edit_borrowers' },
-        debug           => 1,
     }
 );