From d29886a36999a52a2defa137d5c8afe5496c40d4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 7 Jun 2013 14:36:17 +0200 Subject: [PATCH] Bug 10354: Remove erroneous call to haspermission in basket.pl --- acqui/basket.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acqui/basket.pl b/acqui/basket.pl index 7eff6e4..10e7568 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -207,8 +207,8 @@ if ( $op eq 'delete_confirm' ) { } #if the basket is closed,and the user has the permission to edit basketgroups, display a list of basketgroups my ($basketgroup, $basketgroups); - my $member = GetMember(borrowernumber => $loggedinuser); - if ($basket->{closedate} && haspermission({ acquisition => 'group_manage'} )) { + my $uid = GetMember(borrowernumber => $loggedinuser)->{userid}; + if ($basket->{closedate} && haspermission($uid, { acquisition => 'group_manage'} )) { $basketgroups = GetBasketgroups($basket->{booksellerid}); for my $bg ( @{$basketgroups} ) { if ($basket->{basketgroupid} && $basket->{basketgroupid} == $bg->{id}){ -- 1.7.10.4