[Koha-bugs] [Bug 26517] Avoid deleting patrons with permission

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 23 17:00:31 CEST 2020


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

--- Comment #2 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 110606
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110606&action=edit
Bug 26517: Avoid deleting patrons with permission

The patron deletion script misc/cronjobs/delete_patrons.pl uses
C4::Member::GetBorrowersToExpunge() to get patrons that may be deleted.
This method filters patrons from a staff category.
I propose to also filter patrons having permission, so a staff member.
Some small libraries do not define a "staff" category and give permissions to
regular patrons.

Test plan :
1) Create a patron on adult type category with expiry date in the past and
permission to access staff interface
2) Without patch
3) Run delete script : ./src/misc/cronjobs/delete_patrons.pl -v
--expired_before='$(date -I)'
4) You see the patron will be deleted
5) Apply patch
6) Run delete script : ./src/misc/cronjobs/delete_patrons.pl -v
--expired_before='$(date -I)'
7) You dont see the patron

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list