https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38291

--- Comment #78 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211237
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211237&action=edit
Bug 38291: (follow-up) Add ft_reports to the library groups API

Library groups have a "Limit report access by group" setting (ft_reports),
but it was left out of the API representation. Map it to
limit_report_access, and add it to the swagger definition and to the
query parameters of the endpoint.

To test:
1. Apply the patches, then run yarn api:bundle and restart_all
2. Administration > Library groups: create a group "Reports group" with
   "Limit report access by group" checked, and another group without it
3. Log in to the staff interface as a superlibrarian and visit
   /api/v1/library_groups
=> SUCCESS: "Reports group" has limit_report_access true, and the other
   group has it false
4. Visit /api/v1/library_groups?q={"limit_report_access":true}
=> SUCCESS: only "Reports group" is listed
5. Run: prove t/db_dependent/api/v1/library_groups.t xt/api.t
=> SUCCESS: Tests pass

Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to