[Koha-bugs] [Bug 10277] New: Add C4::Context->IsSuperLibrarian()
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 17 17:01:30 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10277
Bug ID: 10277
Summary: Add C4::Context->IsSuperLibrarian()
Classification: Unclassified
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: gmcharlt at gmail.com
Reporter: kyle.m.hall at gmail.com
The method of checking the logged in user for superlibrarian privileges
is obtuse ( $userenv && $userenv->{flags} % 2 != 1 ) to say the least.
The codebase is littered with these lines, with no explanation given. It
would be much better if we had one subroutine that returned a boolean
value to tell us if the logged in user is a superlibrarian or not.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list