From 4d498feb564c08f4650efb01966bc26dbd9ec6bb Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 30 Jul 2014 16:43:08 +0200 Subject: [PATCH] Bug 7292: Use IsSuperLibrarian() instead of $userflags->{superlibrarian} --- acqui/lateorders.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/lateorders.pl b/acqui/lateorders.pl index 9952d8b..55e3921 100755 --- a/acqui/lateorders.pl +++ b/acqui/lateorders.pl @@ -69,7 +69,7 @@ my ($template, $loggedinuser, $cookie, $userflags) = get_template_and_user( # Check if user has rights to access this page my $can_claim_for_all = 0; -if ($userflags->{superlibrarian} +if (C4::Context->IsSuperLibrarian() or (!ref $userflags->{acquisition} and $userflags->{acquisition}) or (ref $userflags->{acquisition} and $userflags->{acquisition}->{order_claim_for_all} -- 1.7.10.4