https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25673
--- Comment #8 from Lari Taskula <[email protected]> --- Created attachment 187905 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187905&action=edit Bug 25673: Log patron view actions in staff client and REST API This patch adds a crude logging of patron view events. It adds logging to the following REST API endpoints - /api/v1/patrons - /api/v1/patrons/{patron_id} In staff client, instead of defining the log event on each page individually, we log every authorized staff client page request that contains a borrowernumber as a request parameter. To test staff client: 1. Enable system preference BorrowersViewLog 2. Navigate to patrons 3. Without specifying any filters, click "Search" 4. Click on one of the borrowers 5. Navigate to "Modification log" of this patron 6. Observe two rows Module Action Info Interface "Patrons" "VIEW" "members/moremember" "Staff interface" "Patrons" "VIEW" "list" "REST API" 7. Disable system preference BorrowersViewLog 8. Repeat steps 2-5 9. Observe no new rows To test REST API: 1. prove t/db_dependent/api/v1/patrons.t -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
