LP#1655399 webstaff: User perm editor grantable fix user/berick/lp1655399-user-perms-bool-fix
authorBill Erickson <berickxx@gmail.com>
Tue, 10 Jan 2017 17:19:35 +0000 (12:19 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 10 Jan 2017 17:19:37 +0000 (12:19 -0500)
commitff708e9357a7a95fc4520326c3400a71a2b8a6fb
treeb26621b1846de1a1d088f90f20a67efbe0dd95c5
parent8958094801fda86643aee19a87de573c670c158f
LP#1655399 webstaff: User perm editor grantable fix

Correctly handle the boolean grantable flag in the user permission
editor.  In some cases, the boolean 0/1 values returned from storage are
returned as strings.  Cast them to numbers before checking truthiness.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/xul/staff_client/server/patron/user_edit_xhtml.js