]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1920815 Item edit link displayed for all users
authorDan Briem <dbriem@wlsmail.org>
Thu, 1 Apr 2021 13:38:41 +0000 (09:38 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 2 Apr 2021 21:37:45 +0000 (17:37 -0400)
commit60ca20e2d98578c830571c395fd747a63531af11
tree450d376fb8b9e30a9e5466671e93a1cbc8782ca9
parent467a9bbe800ca0be2b3f296ec0737a6c613dd1f2
LP#1920815 Item edit link displayed for all users

The Angular catalog item table doesn't check UPDATE_COPY perm
before displaying an edit link. The back-end checks, so this is
a display issue only. This commit grabs a list of org Ids where
the user has UPDATE_COPY perm and checks the copy circ lib or
cn owning lib is in the list before displaying the edit link.

To test:
1. Search for a record with items you don't have perm to edit
2. Note the edit link shows on every item
3. Apply patch
4. Repeat steps 1-2
5. Note edit link displays if you have perm to edit

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html
Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.ts