Koha/circ
Kyle M Hall fb4025b67b Bug 10277 - Add C4::Context->IsSuperLibrarian()
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.

Test Plan:
1) Apply this patch
2) Verify superlibrarian behavior remains unchanged

Signed-off-by: Joel Sasse <jsasse@plumcreeklibrary.net>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Comments on second patch.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-12-30 15:47:23 +00:00
..
add_message.pl
bookcount.pl Bug 9140: Followup removes the useless variable $message 2012-12-22 16:02:55 -05:00
branchoverdues.pl
branchtransfers.pl Bug 9394: Use reserve_id where possible 2013-07-24 05:04:55 +00:00
circulation-home.pl Bug 10240: Offline circulation using HTML5 and IndexedDB 2013-10-11 01:53:34 +00:00
circulation.pl Bug 2720 - Overdues which debar automatically should undebar automatically when returned 2013-10-31 01:53:22 +00:00
del_message.pl
hold-transfer-slip.pl
offline-mf.pl Bug 10240: QA follow-up 2013-10-11 01:57:03 +00:00
offline.pl Bug 10240: QA follow-up 2013-10-11 01:57:03 +00:00
overdue.pl Bug 10277 - Add C4::Context->IsSuperLibrarian() 2013-12-30 15:47:23 +00:00
pendingreserves.pl Bug 9761: Make it possible to confirm future hold requests at checkin time 2013-09-25 00:26:34 +00:00
renew.pl Bug 10493: (follow-up) fix unitialized variable warning 2013-10-22 20:59:50 +00:00
reserveratios.pl Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
returns.pl Bug 10513: (follow-up) use "checkin" rather than "check in" 2013-09-16 17:45:32 +00:00
selectbranchprinter.pl
stats.pl
transfer-slip.pl
transferstoreceive.pl Bug 10721 - Improve DataTables configuration on transfers to receive report 2013-09-07 21:04:53 +00:00
view_holdsqueue.pl Bug 9591 : Set Library changes after viewing Holds Queue >> reserves item 2013-04-15 08:36:07 -04:00
waitingreserves.pl Bug 10080 - Change system pref IndependantBranches to IndependentBranches 2013-05-22 07:58:23 -07:00
ypattrodue-attr-search-authvalue.pl
ysearch.pl Bug 10277 - Add C4::Context->IsSuperLibrarian() 2013-12-30 15:47:23 +00:00