https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42625 --- Comment #243 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 211268 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211268&action=edit Bug 42625: Add Koha::Patron->can_edit_records_from Add a method to tell whether a patron may edit the records of a locked record source because of their library: it returns true when the home library of the patron is a member of a library group, or of a sub group of one, that is linked to the record source. It returns false when the record source has no linked groups, so record sources that nobody has been exempted from keep behaving as they do now. There is nothing to see in the staff interface with this patch alone. It is used by the next patch, and covered by the unit tests added in this series. To test: 1. Apply the patches, then run updatedatabase.pl 2. Run: prove t/db_dependent/Koha/Patron.t => SUCCESS: Tests pass Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Sponsored-by: CLAMS Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.