From 8a48209933533cccca5aee9a53073c0324a30cb3 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 25 Aug 2015 13:15:41 +0200 Subject: [PATCH] Bug 8436: Use C4::Context->IsSuperLibrarian() Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- serials/checkexpiration.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serials/checkexpiration.pl b/serials/checkexpiration.pl index df18fe286d..bb0715ab25 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 ) ) { -- 2.39.5