[Koha-bugs] [Bug 17424] REST API: Preference to control access to own objects without permission
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 17 21:21:33 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17424
Josef Moravec <josef.moravec at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #56257|0 |1
is obsolete| |
--- Comment #3 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 59099
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59099&action=edit
[SIGNED-OFF] Bug 17424: REST API: Preference to control access to own objects
without permission
This patch adds a new system preference AccessOwnObjectsInAPI which controls
accessibility for OPAC-like REST API operations for patron's without otherwise
required permissions.
To test:
1. Apply this patch and set AccessOwnObjectsInAPI to "Enabled"
2. Test REST API operations that allow access to own objects. They should work
as before. E.g. try to GET /api/v1/patrons/XXX where XXX is your
borrowernumber
(you need a valid CGISESSID, so login first, but make sure you don't have
borrowers-permission)
3. Disable AccessOwnObjectsInAPI
4. Observe that you no longer have access. You should be given an appropriate
error message for what happened.
5. Run t/db_dependent/api/v1/swagger/ownership.t and also other REST tests.
Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list