https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38291 --- Comment #63 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211204 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211204&action=edit Bug 38291: (QA follow-up) Require manage_libraries to list library groups GET /library_groups returns the full library group configuration, including the hide_patron_info, limit_item_editing and limit_report_access policy flags, and allows filtering on them. The staff interface page that exposes the same data (admin/library_groups.pl) requires the parameters => manage_libraries permission, but the endpoint only required catalogue. Align the endpoint with the admin page so a catalogue-only user cannot read (or probe via q) the group access control settings, and document the 403 response. Consumers that only need to know which groups are available for a given purpose should get a dedicated, narrower endpoint rather than this management representation. To test: 1. Run prove t/db_dependent/api/v1/library_groups.t => SUCCESS: a catalogue-only user gets 403, a user with manage_libraries (superlibrarian) gets 200 2. Run yarn build and prove xt/api.t => SUCCESS: the spec is valid Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.