Koha-clms/members
Kyle M Hall d003bfa37c 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>
(cherry picked from commit fb4025b67b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2014-08-07 09:36:50 +02:00
..
boraccount.pl
…
default_messageprefs.pl
…
deletemem.pl
…
files.pl
…
guarantor_search.pl
…
mancredit.pl
…
maninvoice.pl
…
member-flags.pl
…
member-password.pl
…
member.pl
…
memberentry.pl
…
members-home.pl
…
members-update-do.pl
…
members-update.pl
…
mod_debarment.pl
…
moremember.pl
…
notices.pl
…
patronimage.pl
…
pay.pl
…
paycollect.pl
…
printfeercpt.pl
…
printinvoice.pl
…
printslip.pl
…
readingrec.pl
…
routing-lists.pl
…
setstatus.pl
…
statistics.pl
…
update-child.pl
…