https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14962
--- Comment #696 from Jake Deery (kwenoch) <[email protected]> --- Created attachment 211988 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211988&action=edit Bug 14962: (QA follow-up) Close a fail-open in the library restrictions, keep the index in step, add coverage Library restrictions - Koha::Patron->libraries_where_can_see_things returns an empty list, which callers read as 'all libraries', both when the user may see everything and when their library is in library groups none of which has the display feature. A restricted user whose library belonged to some other kind of group therefore saw, edited and deleted every library's displays. Fall back to their own library unless they hold the matching *_from_any_libraries permission. Found by testing group membership directly; the API tests only used libraries that are in no group. Search index - Removing an item from a display, deleting a display (which releases its items) and editing a display did not index the affected records again, so they kept the display's location, collection and item type in the index until something else touched them. Index them, in one call per display. Coverage - can_be_accessed_by with and without library groups and the *_any_libraries permissions; reindexing; public list visibility with the module on and off; GetPendingOnSiteCheckouts with active, disabled, ended, not yet started, expired and multiple displays and with the module off. Co-Authored-By: Claude Sonnet 5.5 <[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/
