From f4dc86f8194f548e809bb894c5d5a02ee25b92f7 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 25 Aug 2015 13:15:41 +0200 Subject: [PATCH] [PASSED QA] Bug 8436: Use C4::Context->IsSuperLibrarian() Signed-off-by: Katrin Fischer --- serials/checkexpiration.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serials/checkexpiration.pl b/serials/checkexpiration.pl index df18fe2..bb0715a 100755 --- a/serials/checkexpiration.pl +++ b/serials/checkexpiration.pl @@ -107,7 +107,7 @@ if ($date) { my $branchname; my $branches_loop; -if ( $flags->{superlibrarian} +if ( C4::Context->IsSuperLibrarian() or ( ref $flags->{serials} and $flags->{serials}->{superserials} ) or ( !ref $flags->{serials} and $flags->{serials} == 1 ) ) { -- 1.9.1