[Koha-bugs] [Bug 7002] Inaccurate checks for borrower flags == 1
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 11 17:33:55 CEST 2011
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7002
Ian Walls <ian.walls at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ian.walls at bywatersolutions.
| |com
--- Comment #1 from Ian Walls <ian.walls at bywatersolutions.com> 2011-10-11 15:33:55 UTC ---
To check for superlibrarian (or any top-level permission), you need to use
bitwise AND.
($user->{'flags'} & 1) should return true of the user has superlibrarian
checked, and false otherwise.
C4/Serials.pm does similar erroneous checks for ($user->{'flags'} != 1), which
will also need modification.
--
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the Koha-bugs
mailing list