From 7fb98fe7fef9b01a217d41dd790d0625c0ee696c Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Wed, 3 Jun 2009 14:33:47 +0200 Subject: [PATCH] bugfixing haspermission API --- acqui/basket.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/basket.pl b/acqui/basket.pl index 01b63c65d3..16af043c0e 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -171,7 +171,7 @@ 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 $basketgroups; my $member = GetMember($loggedinuser, "borrowernumber"); - if ($basket->{closedate} && haspermission(C4::Context->dbh, $member->{userid}, { flagsrequired => { acquisition => 'group_manage'} })) { + if ($basket->{closedate} && haspermission({ flagsrequired => { acquisition => 'group_manage'} })) { $basketgroups = GetBasketgroups($basket->{booksellerid}); for (my $i=0; $i < scalar(@$basketgroups); $i++) { if (@$basketgroups[$i]->{closed}) { -- 2.39.5