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

--- Comment #204 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211217
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211217&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 <[email protected]>
Sponsored-by: CLAMS
Signed-off-by: Andrew Fuerste Henry <[email protected]>
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