Language file updates
[koha.git] / serials / checkexpiration.pl
index 5461aa6..178d875 100755 (executable)
@@ -43,6 +43,7 @@ The date to filter on.
 =cut
 
 use strict;
+use warnings;
 use CGI;
 use C4::Auth;
 use C4::Serials; # GetExpirationDate
@@ -59,7 +60,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user (
         query           => $query,
         type            => "intranet",
         authnotrequired => 0,
-        flagsrequired   => { serials => 1 },
+        flagsrequired   => { serials => 'check_expiration' },
         debug           => 1,
     }
 );