]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1860351: fix hasWorkPermHere() in Angular client
authorGalen Charlton <gmc@equinoxinitiative.org>
Sun, 19 Jan 2020 19:47:40 +0000 (14:47 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Sun, 19 Jan 2020 19:53:13 +0000 (14:53 -0500)
commit6a3206c8b8682d99f98e95c1807a74c1bb1e0d99
tree90ced64de9b93b0c9126ef8e18044567c26ad000
parent9ceff36ea9bfd701e8efec063403fcf6afc64074
LP#1860351: fix hasWorkPermHere() in Angular client

Fixes a bug where the Angular client's hasWorkPermHere() check
could return incorrect results and thus incorrectly report
whether or not the staff user currently has particularl permissions
at their current workstation.

To test
-------
[1] Arrange for a workstation whose internal ID is larger than
    any of the org unit IDs.
[2] Log in to that workstation with a user who has permission
    to update monograph parts.
[4] In the experimental Angular staff catalog, go to a record
    (e.g., /eg2/en-US/staff/catalog/record/21/monoparts) and note
    that the New Monograph Part button is disabled.
[5] Apply the patch and repeat step 4. This time, the button
    should be active.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/core/perm.service.ts