ACQ, VIEW_FUND, permission issue 2.3.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.3 |
Fix Released
|
Medium
|
Unassigned | ||
2.4 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When a user has just the VIEW_FUND permission and not the ADMIN_ACQ_FUND permission, (to allow the users to just view the funds and not edit them), an error occurs on the system that causes none of the funds to display.
It looks like the code tries to sort editable entries, and when you can only VIEW them, there is nothing to sort causing the list to be empty. Here is an example log,
open-ils.pcrud open-ils.
Notice above the compare "in" list is empty. This causes the following error,
open-ils.pcrud: Empty IN list
Looks like we need to avoid this sort if the user can't edit any funds and only view.
Steve
Changed in evergreen: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Fix pushed to working/ user/berick/ lp1183340- acq-fund- list-perm- repair