[Koha-bugs] [Bug 14437] New: Refactor C4::Auth::haspermission() to Koha::Object and return errors better.