[Koha-bugs] [Bug 28157] New: Add the ability to set a library from which an API request pretends to come from
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Apr 16 16:44:23 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28157
Bug ID: 28157
Summary: Add the ability to set a library from which an API
request pretends to come from
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: REST API
Assignee: koha-bugs at lists.koha-community.org
Reporter: tomascohen at gmail.com
Some actions results will depend on the logged-in library, in the Koha UI.
For example, extended attributes are not displayed on a library if limits have
been set. And the same applies for setting them.
Our current code on the API front controller sets userenv with the logged-in
patron library. We should add a way to override it through a header, and checks
should prevent invalid combinations: i.e. IndependentBranches + patron not
superlibrarian => reject the request.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list