LP 1648918: Remove Workstation at Root of User's Permission Tree user/dyrcona/lp1648918-remove-workstation-fix
authorJason Stephenson <jason@sigio.com>
Sat, 10 Dec 2016 01:45:33 +0000 (20:45 -0500)
committerJason Stephenson <jason@sigio.com>
Sat, 10 Dec 2016 01:45:33 +0000 (20:45 -0500)
commit51ce32d4ad6374aff869fc96ba22f8b921a50917
treecd13e24a17accdbc4a47161b65c271362ce1ea8d
parent18c0241d4f8cc590f89070f767b786d58c312951
LP 1648918: Remove Workstation at Root of User's Permission Tree

If you register a workstation at the root of the user's permission
tree in the webstaff client, you are not able to later remove it.  The
Remove button is dimmed.  You can remove a workstation registered at
any other org_unit where the user has the REGISTER_WORKSTATION
permission.

To reproduce this bug, login as the admin user and register a
workstation at the CONS org_unit.  Then, go to Workstation
Administration and see that the Remove button is dimmed.

To test the patch, do the same, but see that the Remove button is not
dimmed.  When you click it, the workstation is also removed.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js