Bug 8436: Use C4::Context->IsSuperLibrarian()
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 25 Aug 2015 11:15:41 +0000 (13:15 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 4 Nov 2015 14:11:47 +0000 (11:11 -0300)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
serials/checkexpiration.pl

index df18fe2..bb0715a 100755 (executable)
@@ -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 ) )
 {