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

--- Comment #2 from Fridolin SOMERS <[email protected]> ---
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.
_______________________________________________
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/

Reply via email to