Bug 6661 - Broken calls to C4::Auth::haspermission
Summary: Broken calls to C4::Auth::haspermission
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Authentication (show other bugs)
Version: 3.4
Hardware: All All
: P5 - low normal (vote)
Assignee: Galen Charlton
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 15:59 UTC by Edgar Fuß
Modified: 2013-12-05 20:04 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.