Bug 8436: Use C4::Context->IsSuperLibrarian()

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Julian Maurice 2015-08-25 13:15:41 +02:00 committed by Tomas Cohen Arazi
parent da57aba894
commit 8a48209933

View file

@ -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 ) )
{