]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP 1648922: Hide orgs that can't have users in workstation registration.
authorJason Stephenson <jason@sigio.com>
Sat, 10 Dec 2016 02:21:35 +0000 (21:21 -0500)
committerKathy Lussier <klussier@masslnc.org>
Sat, 4 Mar 2017 03:00:43 +0000 (22:00 -0500)
commitf78a75121cd7f622ea63cd04fbd431ebd15d5fcf
tree9be770b747f5193e6037835f77cd46ee75ac034a
parentc2ff26aa8cb050c15b4124ec8d3402422fd3dcb1
LP 1648922: Hide orgs that can't have users in workstation registration.

A user can register a workstation at an org unit that can't have users
in the webstaff client.  The XUL staff client did not allow this.
Such org units were grayed out in the selector.

This commit hides org units that can't have users in the ou selector
for workstation registration in the webstaff client.  This is in
addition to hiding the existing hiding of org units where the user
does not have the REGISTER_WORKSTATION permission.

To reproduce this bug, see that org units that have false for
can_have_users appear in the selection for workstation registration.
Also see that you can register a workstation at one.

After applying this patch, make sure you've logged out and then log in
to the webstaff client.  You will now see that those org units no
longer appear in the slection list.  You cannot register workstations
at those org units any longer.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js