Bug 6661

Summary: Broken calls to C4::Auth::haspermission
Product: Koha Reporter: Edgar Fuß <ef>
Component: AuthenticationAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: P5 - low CC: dpavlin
Version: 3.4   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Edgar Fuß 2011-08-02 15:59:40 UTC
There are several broken calls to C4::Auth::haspermission missing arguments or passing the wrong ones. In particular:

./acqui/basket.pl: haspermission({ flagsrequired   => { acquisition => 'group_manage'} })
Missing userid, broken flagsrequired.

./acqui/booksellers.pl: haspermission( $uid, { flagsrequired => { acquisition => q{*} } } )
Broken flagsrequired.

./admin/aqbudget_owner_search.pl: haspermission( $res->{'userid'} );
Missing flagsrequired, maybe OK?
Comment 1 Owen Leonard 2013-03-26 16:31:26 UTC
This appears to be fixed in master.