Re-enable use of BAR_PATRON and UNBAR_PATRON perms user/tsbere/bar_patron
authorThomas Berezansky <tsbere@mvlc.org>
Wed, 15 Feb 2012 20:36:58 +0000 (15:36 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Wed, 15 Feb 2012 20:36:58 +0000 (15:36 -0500)
commitf32248757b7a32c3b8a8d2e517e68f12397f23f5
treefe7811b2f8066f795568ac93112ae76e17b48a95
parentbd0057b49bd7179bf71962eff64ce0029e1067e6
Re-enable use of BAR_PATRON and UNBAR_PATRON perms

If you aren't allowed to bar/unbar at the patron's home library then:

1 - Disable the checkbox as appropriate
2 - Disallow on the backend too

The frontend only checks on page load. The backend checks the old patron on
update and the new patron on create.

This does not stop "change home library to me, bar/unbar, change back" if
otherwise able to change the patron's home library.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/web/js/ui/default/actor/user/register.js